We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7590fd3 commit 5ab71caCopy full SHA for 5ab71ca
Sprint-1/exercises/count.js
@@ -1,10 +1,10 @@
1
-// Line 1 is a variable declaration, creating the count variable with an initial value of 0
+// Line 1 is a variable declaration, creating the count variable with an initial value of 0.
2
// Describe what line 3 is doing, in particular focus on what = is doing
3
+// Line 3 updates the value of count by taking its current value, adding 1 to it,
4
+// and then using the assignment operator (=) to store the new value back into count.
5
6
let count = 0;
7
8
count = count + 1;
9
console.log(count);
10
-// line 3 is taking the first value and reassigns this new value to count its value + the number 1
-
0 commit comments