Skip to content

Commit 29a304e

Browse files
Variable declaration explained
1 parent b31a586 commit 29a304e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ 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+
9+
// In line 3 JS takes the current value of count which is 0, adds 1 to it and then stores the result back into count variable on the left.

0 commit comments

Comments
 (0)