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 b7acb73 commit 8af030aCopy full SHA for 8af030a
Sprint-1/2-mandatory-errors/0.js
@@ -5,4 +5,4 @@ We don't want the computer to run these 2 lines - how can we solve this problem?
5
// We comment it out,
6
// We can do this by using a two forward slashes ("//")if it is on one line
7
//or we use one forward slash with an asterisk at the start("/*") and an asterisk
8
-// and a forward slash at the end ("*/") for block commenting
+// and a forward slash at the end ("*/") for block commenting
Sprint-1/2-mandatory-errors/1.js
@@ -2,3 +2,10 @@
2
3
const age = 33;
4
age = age + 1;
+
+//Answer:
+//we cannot re-assign variables with "const".
+// We have use "let". let allows the variable to be re-assigned.
9
10
+let age = 33;
11
+age = 33 + 1;
0 commit comments