Skip to content

Commit b949792

Browse files
committed
1-count.js
1 parent 5cb7a47 commit b949792

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ let count = 0;
22

33
count = count + 1;
44

5+
6+
57
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
68
// Describe what line 3 is doing, in particular focus on what = is doing
9+
//Line 3 is reassigning variable count with a new value, in this case we're saying add 1 to whatever we already have in count, and so by using the console.log before and after the reassignment the we can tell new value of count is 1

0 commit comments

Comments
 (0)