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 19900cf commit 81e5bf5Copy full SHA for 81e5bf5
Sprint-1/2-mandatory-errors/1.js
@@ -1,4 +1,6 @@
1
// trying to create an age variable and then reassign the value by 1
2
3
-const age = 33;
4
-age = age + 1;
+let age = 33; //changing const to let allows reassignment.
+age = age + 1; //age is now 34
5
+
6
+console.log(age); //This line was added just to test the expression. Returns 34.
0 commit comments