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 51decb7 commit cc4ee1cCopy full SHA for cc4ee1c
Sprint-1/1-key-exercises/1-count.js
@@ -4,3 +4,7 @@ count = count + 1;
4
5
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
6
// Describe what line 3 is doing, in particular focus on what = is doing
7
+// Line 3 is (incrementing variable 'count' by 1) i.e updating the value of the count variable by adding 1 to its current value.
8
+// The = (assignment) operator is used to assign the new value (count + 1) back to the count variable.
9
+// Meaning, 'count' variable now has a new value of 1.
10
+console.log(count); // outputs 1
0 commit comments