Skip to content

Commit 557caf0

Browse files
committed
Add reference error comment for cityOfBirth initialization issue
1 parent 15a4e9a commit 557caf0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • Sprint-2/2-mandatory-errors

‎Sprint-2/2-mandatory-errors/2.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33

44
console.log(`I was born in ${cityOfBirth}`);
55
const cityOfBirth = "Bolton";
6+
7+
//ReferenceError: Cannot access 'cityOfBirth' before initialization.

0 commit comments

Comments
 (0)