Skip to content

Commit 9718716

Browse files
committed
Clarified comment on count increment operation in 1-count.js
1 parent db2d6dd commit 9718716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +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 updating the value of count by adding 1 to its current value. The = operator is an assignment operator, which assigns the result of the expression on the right (count + 1) to the variable on the left (count). So, after line 3 is executed, count will have a new value that is one greater than its previous value.
7+
// Line 3 is incrementing the value of count. The = operator is an assignment operator, which assigns the result of the expression on the right (count + 1) to the variable on the left (count). So, after line 3 is executed, count will have a new value that is one greater than its previous value.

0 commit comments

Comments
 (0)