Skip to content

Commit bd483c1

Browse files
committed
reassign value after declaration
1 parent 8c269ba commit bd483c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sprint-1/exercises/count.js

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

33
count = count + 1;
44

5+
console.log(count);
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+
10+
// line 3 is reassigning the value of count by adding 1 to its current value.

0 commit comments

Comments
 (0)