Skip to content

Commit 1d0d0c4

Browse files
committed
Complete 1-count.js exercise
1 parent f5b9e81 commit 1d0d0c4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ 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-
// Describe what line 3 is doing, in particular focus on what = is doing
6+
// Line 3: first it calculates count + 1 (using the current value of count),
7+
// then the = assignment operator stores that new result back into the count variable.
8+
// So count changes from 0 to 1.

0 commit comments

Comments
 (0)