Skip to content

Commit 8085ffc

Browse files
debug2604debug2604
authored andcommitted
Answer 1-count.js: describe line 3 and assignment operator
1 parent 5bd8824 commit 8085ffc

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+
8+
//Line 3 is reassignment of variable "count". The new assignment adds 1 to current value of count, "=" is to assign value on right-hand side to variable on left.

0 commit comments

Comments
 (0)