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 ab26b8e commit 1de07dcCopy full SHA for 1de07dc
1 file changed
Sprint-1/2-mandatory-errors/2.js
@@ -3,3 +3,10 @@
3
4
console.log(`I was born in ${cityOfBirth}`);
5
const cityOfBirth = "Bolton";
6
+//ANSWER:
7
+// The 'cityOfBirth' was not assigned before the console.log statement
8
+// Solution will be to switch the lines as shown below:
9
+
10
11
+const cityOfBirth = "Bolton";
12
+console.log(`I was born in ${cityOfBirth}`);
0 commit comments