Skip to content

Commit c03010a

Browse files
committed
Updated answer to 1-count.js
1 parent 46fc1f2 commit c03010a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ count = count + 1;
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
77

8-
// = in line 3 is assigning the rule that counting must start at 0.
8+
// = in line 3 is used as assignment operator to update count. It evaluates count + 1 using the current count value, then stores the result (1) back into count and overwrites the original count value of 0.

0 commit comments

Comments
 (0)