Skip to content

Commit beda3cd

Browse files
committed
Add comment to explain what the assignment operator does on line 3
1 parent 8f3d6cf commit beda3cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
let count = 0;
22

33
count = count + 1;
4+
console.log(count);
45

56
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
67
// Describe what line 3 is doing, in particular focus on what = is doing
8+
9+
//Answer
10+
// The third line is a statement that reassigns the value of count to count + 1.
11+
// The assignment operator (=) updates the variable count with a new value.

0 commit comments

Comments
 (0)