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 b31a586 commit 0392c8eCopy full SHA for 0392c8e
1 file changed
Sprint-1/1-key-exercises/1-count.js
@@ -4,3 +4,10 @@ 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
+
8
+// Line 3 is updating the value of the count variable. The = operator is an
9
+// assignment operator, which assigns the value on the right side
10
+// (count + 1) to the variable on the left side (count). In this case,
11
+// it takes the current value of count (which is 0), adds 1 to it, and then
12
+// assigns the result (1) back to count. So after line 3 executes, count will
13
+// have a new value of 1.
0 commit comments