There was an error while loading. Please reload this page.
1 parent 56bebf5 commit b584bdeCopy full SHA for b584bde
1 file changed
Sprint-2/2-mandatory-errors/2.js
@@ -1,6 +1,7 @@
1
// Currently trying to print the string "I was born in Bolton" but it isn't working...
2
// what's the error ?
3
4
-console.log(`I was born in ${cityOfBirth}`);
+
5
const cityOfBirth = "Bolton";
6
-// The error is that the const declation and initialization came after console.log so no access for cityOfBirth.
+// The error is that the const declation and initialization came after console.log so no access for cityOfBirth.
7
+console.log(`I was born in ${cityOfBirth}`);
0 commit comments