Skip to content

Commit 0dafc76

Browse files
committed
complete ex. 1
1 parent 24272b0 commit 0dafc76

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎Sprint-2/1-key-exercises/1-count.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ count = count + 1;
55
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
66
// Describe what line 3 is doing, in particular focus on what = is doing
77
console.log(`${count}`);
8+
9+
// line 3 is reassigning the value of count by changing it to count+1
10+
// and the = sign takes the value on the right and stores it into the variable on the left
11+
// in this case in line 3 the the variable is assigned a new value telling it to take the old one and add 1 to it.

0 commit comments

Comments
 (0)