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 5b08905 commit c921f4aCopy full SHA for c921f4a
2 files changed
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;
+var age = 33;
4
age = age + 1;
5
+
6
+console.log(age);
Sprint-1/2-mandatory-errors/2.js
@@ -1,5 +1,6 @@
// Currently trying to print the string "I was born in Bolton" but it isn't working...
// what's the error ?
+// We were trying to call a the variable before it was even initialized / made.
-console.log(`I was born in ${cityOfBirth}`);
const cityOfBirth = "Bolton";
+console.log(`I was born in ${cityOfBirth}`);
0 commit comments