Skip to content

Commit 9514edf

Browse files
committed
error 2 done
1 parent b710983 commit 9514edf

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
let age = 33;
44
age = age+1
5-
console.log(age)
5+
console.log(age)
6+
7+
//const sets the value as a constant you can't change

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

Lines changed: 3 additions & 2 deletions
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 ?
3-
4-
console.log(`I was born in ${cityOfBirth}`);
53
const cityOfBirth = "Bolton";
4+
console.log(`I was born in ${cityOfBirth}`);
5+
6+
//wrong order

0 commit comments

Comments
 (0)