Skip to content

Commit 7d3c05f

Browse files
committed
Described what line 3 is doing & =
1 parent f95b8bd commit 7d3c05f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ let count = 0;
33
count = count + 1;
44

55
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
6+
67
// Describe what line 3 is doing, in particular focus on what = is doing
8+
9+
10+
11+
Line 1 is a declaration and Line 3 is a statement that changes the value of the variable 'count' by adding 1 to its current value.
12+
The variable is changing from 0 to 1 after line 3 is executed after we used 'let' to declare the variable 'count' and then we used the = operator to assign the new value.

0 commit comments

Comments
 (0)