Skip to content

Commit ed5a33c

Browse files
committed
moved the line 5 above console.log
1 parent b887977 commit ed5a33c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Sprint-1/2-mandatory-errors

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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}`);
6+
67

78
// The variable const cityOfBirth = "Bolton"; needs to be declared at first. //
89
// As it is not declared, JavaScript cannot find out the variable cityofBirth in console.log. //

0 commit comments

Comments
 (0)