Skip to content

Commit 77da0b4

Browse files
authored
Update comment for clarity on ReferenceError
Fixed comment to clarify the error message.
1 parent 87d18e1 commit 77da0b4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Currently trying to print the string "I was born in Bolton" but it isn't working...
2-
// what's the error
2+
// what's the error?
3+
//ReferenceError: Cannot access 'cityOfBirth' before initialization
34

45
const cityOfBirth = "Bolton";
56
console.log(`I was born in ${cityOfBirth}`);

0 commit comments

Comments
 (0)