There was an error while loading. Please reload this page.
1 parent 8191573 commit 3ff94aaCopy full SHA for 3ff94aa
1 file changed
Sprint-2/2-mandatory-errors/1.js
@@ -1,4 +1,12 @@
1
// trying to create an age variable and then reassign the value by 1
2
3
-const age = 33;
+//const age = 33;
4
+//age = age + 1;
5
+
6
+// We use let because the value of age needs to change.
7
8
9
+let age = 33;
10
11
age = age + 1;
12
+console.log(age);
0 commit comments