Skip to content

Commit 11ae560

Browse files
committed
Fix formatting of comments in count.js for clarity
1 parent 5ddd5cd commit 11ae560

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,7 @@ 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-
// Line 3 is updating the value of the variable `count`. The `=` operator is an assignment operator, which means it takes the value on the right side (in this case, `count + 1`) and assigns it to the variable on the left side (`count`). So, it takes the current value of `count`, adds 1 to it, and then stores that new value back into `count`.
8+
// Line 3 is updating the value of the variable `count`. The `=`
9+
// operator is an assignment operator, which means it takes the value on the right side
10+
// (in this case, `count + 1`) and assigns it to the variable on the left side (`count`). So,
11+
// it takes the current value of `count`, adds 1 to it, and then stores that new value back into `count`.

0 commit comments

Comments
 (0)