You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-1/2-mandatory-errors/2.js
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,7 @@
3
3
4
4
console.log(`I was born in ${cityOfBirth}`);
5
5
constcityOfBirth="Bolton";
6
+
7
+
//ReferenceError: Cannot access 'cityOfBirth' before initialization
8
+
/* A lexical variable was accessed before it was initialized. This happens within any scope (global, module, function, or block) when variables declared with let or const are accessed before the place where they are declared has been executed
0 commit comments