There was an error while loading. Please reload this page.
1 parent 0e5b329 commit 820cbc8Copy full SHA for 820cbc8
1 file changed
Sprint-2/1-key-exercises/1-count.js
@@ -4,4 +4,6 @@ count = count + 1;
4
console.log(count);
5
6
// 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
+// Line 3 is using the assignment operator (=) to update the value of count.
8
+// It reads the current value of count, adds 1 to it, and then stores the result back into count.
9
+// So the value changes from 0 to 1.
0 commit comments