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 afca59a commit 2b12a34Copy full SHA for 2b12a34
Sprint-1/2-mandatory-errors/1.js
@@ -1,4 +1,8 @@
1
// trying to create an age variable and then reassign the value by 1
2
3
-const age = 33;
+let age = 33; // changed from constant to variable so that value can be reassigned
4
age = age + 1;
5
+console.log(age); // should print 34 running testing
6
+
7
8
+//after testing can confirm age variable is now 34.
0 commit comments