Skip to content

Commit c7bd6f9

Browse files
committed
answered the sprint 1 count work
1 parent 124ae45 commit c7bd6f9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sprint-1/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 updating the value of count by adding 1 to its current value and then assigning that new value back to count.
8+
// the assignemt operator (=) is used to assign the result of the expression (count + 1) back to the variable count, effectively updating its value.

0 commit comments

Comments
 (0)