Skip to content

Commit 820cbc8

Browse files
committed
Add count exercise explanation
1 parent 0e5b329 commit 820cbc8

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
@@ -4,4 +4,6 @@ count = count + 1;
44
console.log(count);
55

66
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
7-
// Describe what line 3 is doing, in particular focus on what = is doing
7+
// Line 3 is using the assignment operator (=) to update the value of count.
8+
// It reads the current value of count, adds 1 to it, and then stores the result back into count.
9+
// So the value changes from 0 to 1.

0 commit comments

Comments
 (0)