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 5f999c7 commit 90f27bbCopy full SHA for 90f27bb
Sprint-1/1-key-exercises/1-count.js
@@ -1,6 +1,12 @@
1
let count = 0;
2
3
-count = count + 1;
+// count = count + 1;
4
5
+// count += 1;
6
+
7
+count++;
8
9
+console.log(count);
10
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
11
// Describe what line 3 is doing, in particular focus on what = is doing
12
+// In line 3 they are reassign the value for count by adding count+1 and = here called assigning operator
0 commit comments