There was an error while loading. Please reload this page.
1 parent 2edba64 commit 0fc0771Copy full SHA for 0fc0771
1 file changed
Sprint-2/2-mandatory-errors/2.js
@@ -1,5 +1,6 @@
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";
+// Declare the variable before using it in the template literal.
6
+console.log(`I was born in ${cityOfBirth}`);
0 commit comments