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 ac2cdb5 commit 3966773Copy full SHA for 3966773
Sprint-1/2-mandatory-errors/2.js
@@ -1,5 +1,10 @@
1
// Currently trying to print the string "I was born in Bolton" but it isn't working...
2
// what's the error ?
3
4
+
5
console.log(`I was born in ${cityOfBirth}`);
6
const cityOfBirth = "Bolton";
7
8
+// Reference error:can not access "cityOfBirth" before initialization
9
+// in this code the variable "cityOfBirth" is used before it is been declared"
10
+// solution: Move the const line above the console.log
0 commit comments