File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33let age = 33 ;
44age = age + 1 ;
55
6- //const age = 33;
7- //age == age + 1;
8-
96console . log ( age )
107
118//This is a type error. For the expected result of 34, age should not be declared as a constant.
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ const cityOfBirth = "Bolton";
55console . 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.
Original file line number Diff line number Diff line change 1- // const 12HourClockTime = "8:53pm";
2- // const 24hourClockTime = "20:53";
31 // An identifier cannot start with a numberical value
42
53const TweleveHourClockTime = "8:53pm" ;
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ let carPrice = "10,000";
22let priceAfterOneYear = "8,543" ;
33
44carPrice = Number ( carPrice . replaceAll ( "," , "" ) ) ;
5- //priceAfterOneYear = Number(priceAfterOneYear.replaceAll("," ""));
6-
75priceAfterOneYear = Number ( priceAfterOneYear . replaceAll ( "," , "" ) ) ;
86
97const priceDifference = carPrice - priceAfterOneYear ;
You can’t perform that action at this time.
0 commit comments