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 7f35b33 commit e6d78a0Copy full SHA for e6d78a0
1 file changed
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;
+/* we cannot reassign a variable that was declared using the const keyword so we will change it to the let keyword
4
+ which allows us to reassign variables*/
5
+
6
+let age = 33;
7
age = age + 1;
8
+console.log(age)
0 commit comments