File tree Expand file tree Collapse file tree
Sprint-2/3-mandatory-interpret Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ let carPrice = "10,000";
22let priceAfterOneYear = "8,543" ;
33
44carPrice = Number ( carPrice . replaceAll ( "," , "" ) ) ;
5- priceAfterOneYear = Number ( priceAfterOneYear . replaceAll ( "," "" ) ) ;
5+ priceAfterOneYear = Number ( priceAfterOneYear . replaceAll ( "," , "" ) ) ;
66
77const priceDifference = carPrice - priceAfterOneYear ;
88const percentageChange = ( priceDifference / carPrice ) * 100 ;
@@ -19,7 +19,7 @@ console.log(`The percentage change is ${percentageChange}`);
1919
2020
2121// b) Run the code and identify the line where the error is coming from - why is this error occurring? How can you fix this problem?
22-
22+ // The error is coming from line 5. There is a separator missing from the function call. Insert a comma to fix the problem.
2323// c) Identify all the lines that are variable reassignment statements
2424
2525// d) Identify all the lines that are variable declarations
You can’t perform that action at this time.
0 commit comments