Skip to content

Commit ee778eb

Browse files
Alex JamshidiAlex Jamshidi
authored andcommitted
added explanation for 1-count.js'
1 parent 9c3d4d8 commit ee778eb

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+
// Line 3 is reassigning the variable 'count' to a new value. The new value that 'count' will take on is the existing value plus 1.
9+
// Given count is assigned a value of 0 in line 1, after running line 3 the value of count would be expected to be 1.

0 commit comments

Comments
 (0)