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 3372770 commit 9db28b2Copy full SHA for 9db28b2
Sprint-1/1-key-exercises/1-count.js
@@ -1,6 +1,12 @@
1
let count = 0;
2
3
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
8
+
9
+// Line 3 is reassigning the value of the count variable to the result of the expression count + 1.
10
+// The = operator is the assignment operator, which assigns the value on the right-hand side
11
+// (the result of count + 1) to the variable on the left-hand side (count).
12
+// This increments the value of count by 1.
0 commit comments