Skip to content

Commit ef4f642

Browse files
committed
Add comments to clarify count variable increment logic
1 parent 5df448f commit ef4f642

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ 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+
9+
10+
//line 3 is updating the value of count by adding 1 to its current value, so count now equals 1 and every time we run the code it will increment by 1.

0 commit comments

Comments
 (0)