Skip to content

Commit 168186a

Browse files
add console.log() to verify the value of count
1 parent 3c0525b commit 168186a

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
@@ -4,4 +4,7 @@ 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+
8+
console.log(`value of count is ${count}`)
9+
710
// what line 3 doing is add 1 to current value of "count" and saving or assigning the new value (which is 1) as new value

0 commit comments

Comments
 (0)