Skip to content

Commit b11e415

Browse files
committed
answered the first question in exercise 1
1 parent b31a586 commit b11e415

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ let count = 0;
22

33
count = count + 1;
44

5-
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
6-
// Describe what line 3 is doing, in particular focus on what = is doing
5+
// The expression on the right is evaluated. The = operator assigns the result to the variable on the left, updating the value stored in count. So it took the value of count which was 0 and added 1 to equal 1 and assigned that value to the variable of count.

0 commit comments

Comments
 (0)