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 4ce90b9 commit f1b26c1Copy full SHA for f1b26c1
Sprint-1/errors/2.js
@@ -1,5 +1,9 @@
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
+console.log(`I was born in ${cityOfBirth}`);
7
8
+// explanation: the error was that the variable cityOfBirth was not defined before it was used in the console.log statement.
9
0 commit comments