Skip to content

Commit f8e471d

Browse files
fix: move variable declaration and add explanation
1 parent 0a4e7f6 commit f8e471d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • Sprint-1/2-mandatory-errors

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
const cityOfBirth = "Bolton";
55
console.log(`I was born in ${cityOfBirth}`);
66

7+
//// The error was a ReferenceError because the variable was used before declaration.

0 commit comments

Comments
 (0)