Skip to content

Commit 57d7614

Browse files
committed
Adding comments on line 3
1 parent 4c29df2 commit 57d7614

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

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

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
7+
8+
// Line 3 is updating the count variable by reassigning new value that is count + 1 or (0 + 1 which is 1)
9+
// The = operator is assigning the count variable we declared in line 1 with new value

0 commit comments

Comments
 (0)