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 8f3d6cf commit bae8316Copy full SHA for bae8316
Sprint-1/1-key-exercises/1-count.js
@@ -1,6 +1,14 @@
1
let count = 0;
2
3
-count = count + 1;
+count = count + 3;
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
+
8
+// Line 3 is updating the value of the count variable by adding 1 to its current value. The = operator
9
+// is used to assign the new value (count + 1) back to the count variable.
10
+// we can also say that the = operator is taking the value on the right side (count + 1) and storing it
11
+// in the variable on the left side (count).
12
13
+// We can see the result of our code by logging the count variable to the console
14
+console.log(count);
0 commit comments