Skip to content

Commit 0015f48

Browse files
committed
count.js
1 parent f5b9e81 commit 0015f48

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ 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+
// Line 3 is reassigning the value of the variable count by adding 1 to its initial value.
8+
// The = sign is assigning the result of the expression on the right side (count + 1) to the variable count on the left side.

0 commit comments

Comments
 (0)