Skip to content

Commit c921f4a

Browse files
sprint 2 exercises 1 & 2 completed
1 parent 5b08905 commit c921f4a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// trying to create an age variable and then reassign the value by 1
22

3-
const age = 33;
3+
var age = 33;
44
age = age + 1;
5+
6+
console.log(age);

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 ?
3+
// We were trying to call a the variable before it was even initialized / made.
34

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

0 commit comments

Comments
 (0)