Skip to content

Commit 676e44f

Browse files
committed
mandatory_error 2 commit
1 parent 633ded2 commit 676e44f

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

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

44
console.log(`I was born in ${cityOfBirth}`);
55
const cityOfBirth = "Bolton";
6+
7+
// the variable 'cityOfBirth' had to be declared first before doing the console log.
8+
// This is because the JAvascript reads from top to bottom

0 commit comments

Comments
 (0)