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 ceb26e8 commit ac11085Copy full SHA for ac11085
Sprint-1/2-mandatory-errors/1.js
@@ -1,4 +1,10 @@
1
// trying to create an age variable and then reassign the value by 1
2
3
-const age = 33;
4
-age = age + 1;
+// const age = 33;
+// age = age + 1;
5
+
6
+// using let as opposed to const is appropriate here as we intend to reassign the value of age
7
8
+let age = 33
9
+age += 1
10
+console.log(age) //should log 34;
0 commit comments