Skip to content

Commit 8ab1e36

Browse files
committed
swapped line order
1 parent 8300538 commit 8ab1e36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Sprint-1/2-mandatory-errors

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Currently trying to print the string "I was born in Bolton" but it isn't working...
22
// what's the error ?
33

4-
console.log(`I was born in ${cityOfBirth}`);
54
const cityOfBirth = "Bolton";
5+
console.log(`I was born in ${cityOfBirth}`);
66

77

88
// The 'ReferenceError' occurs because the code tries to use the variable cityOfBirth before it has been defined.

0 commit comments

Comments
 (0)