Skip to content

Commit 8f743b2

Browse files
committed
Add comment explaining instialization error
1 parent 5c9289a commit 8f743b2

File tree

1 file changed

+1
-0
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
console.log(`I was born in ${cityOfBirth}`);
55
const cityOfBirth = "Bolton";
6+
// Error: Cannot access 'cityOfBirth' before instialization - the error means: you tried to use a let or const variable before its declaration line ran.

0 commit comments

Comments
 (0)