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 abb1513 commit 39253b5Copy full SHA for 39253b5
Sprint-1/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 ?
+// The error is caused by using the variable before it is declared
3
+// and by using single quotes instead of backticks for a template string
4
-console.log(`I was born in ${cityOfBirth}`);
5
const cityOfBirth = "Bolton";
6
+console.log(`I was born in ${cityOfBirth}`);
0 commit comments