Skip to content

Commit e662361

Browse files
fixed the input error
1 parent 01fb6ae commit e662361

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

Sprint-1/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...
22
// what's the error ?
33

4+
let cityOfBirth = "Bolton";
45
console.log(`I was born in ${cityOfBirth}`);
5-
const cityOfBirth = "Bolton";
6+
//The error was because the variable was declared after the consol.log

0 commit comments

Comments
 (0)