Skip to content

Commit c7ddaed

Browse files
Updating the script with comments detailing my understanding of the script
1 parent dd85a1d commit c7ddaed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ count = count + 1;
44

55
console.log(count);
66
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
7-
// Describe what line 3 is doing, in particular focus on what = is doing
7+
// Describe what line 3 is doing, in particular focus on what = is doing
8+
// The '=' assignment operator. It assigns the value on the right hand side to the variable on the left.
9+
// The variable 'count' is initially assigned the value of 0.
10+
// And the result is assigned back to count.
11+
// This mean 'count; is updated each time this line runs.

0 commit comments

Comments
 (0)