Skip to content

Commit 1e725d9

Browse files
debug2604debug2604
authored andcommitted
Delete the old code you commented out: 1.js lines 6 and 7, 2.js lines 8 and 9, 4.js lines 1 and 2, and 1-percentage-change.js line 5.
1 parent 2d0acdc commit 1e725d9

4 files changed

Lines changed: 0 additions & 9 deletions

File tree

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
let age = 33;
44
age = age + 1;
55

6-
//const age = 33;
7-
//age == age + 1;
8-
96
console.log(age)
107

118
//This is a type error. For the expected result of 34, age should not be declared as a constant.

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ const cityOfBirth = "Bolton";
55
console.log(`I was born in ${cityOfBirth}`);
66

77

8-
//console.log(`I was born in ${cityOfBirth}`);
9-
//const cityOfBirth = "Bolton";
108
//The error is that the variable should be declared as a constant before it is used in the console.log statement.
119

1210
//This is a ReferenceError.

‎Sprint-2/2-mandatory-errors/4.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// const 12HourClockTime = "8:53pm";
2-
// const 24hourClockTime = "20:53";
31
// An identifier cannot start with a numberical value
42

53
const TweleveHourClockTime = "8:53pm";

‎Sprint-2/3-mandatory-interpret/1-percentage-change.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ let carPrice = "10,000";
22
let priceAfterOneYear = "8,543";
33

44
carPrice = Number(carPrice.replaceAll(",", ""));
5-
//priceAfterOneYear = Number(priceAfterOneYear.replaceAll("," ""));
6-
75
priceAfterOneYear = Number(priceAfterOneYear.replaceAll(",",""));
86

97
const priceDifference = carPrice - priceAfterOneYear;

0 commit comments

Comments
 (0)