Skip to content

Commit 3ff62a2

Browse files
authored
Add explanation for count increment operation
Added a comment explaining the increment operation on the count variable.
1 parent b31a586 commit 3ff62a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ 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+
// Line 3 is adding 1 to that value of count variable, then making that new value to be the current count variable.

0 commit comments

Comments
 (0)