Skip to content

Commit abb16d7

Browse files
committed
i just answer 1 -key -exercise using multiple line comment . i also created a branch coursework/sprint-1.
1 parent b31a586 commit abb16d7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

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

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

0 commit comments

Comments
 (0)