WEBVTT

1
00:00:00.000 --> 00:00:02.250
Let's start by creating the object
in the 2_product.js file.

2
00:00:03.550 --> 00:00:09.140
I'll call this object product and
add three properties with three values.

3
00:00:10.490 --> 00:00:16.970
Chair, we have 20 of them in stock,
and their unit price is $45.99.

4
00:00:16.970 --> 00:00:22.190
Now here I'm using the newer syntax with
the let keyword to create the variable.

5
00:00:22.190 --> 00:00:25.330
You could use var just as well and
it still works.

6
00:00:25.330 --> 00:00:28.500
But check the teacher's notes if you wanna
understand the difference between var and

7
00:00:28.500 --> 00:00:30.000
let, and why we now use let.
