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 5b0c0bc commit 0835346Copy full SHA for 0835346
Sprint-1/2-mandatory-errors/2.js
@@ -3,3 +3,5 @@
3
4
console.log(`I was born in ${cityOfBirth}`);
5
const cityOfBirth = "Bolton";
6
+
7
+// The error message 'Cannot access 'cityOfBirth' before initialization' occured because the 'const' variable was used before it was declared.
0 commit comments