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 @@ -3,7 +3,7 @@ let priceAfterOneYear = "8,543";
33
44carPrice = Number ( carPrice . replaceAll ( "," , "" ) ) ;
55priceAfterOneYear = Number ( priceAfterOneYear . replaceAll ( "," , "" ) ) ;
6-
6+ console . log ( carPrice )
77const priceDifference = carPrice - priceAfterOneYear ;
88const percentageChange = ( priceDifference / carPrice ) * 100 ;
99
@@ -16,7 +16,7 @@ console.log(`The percentage change is ${percentageChange}`);
1616// 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?
1717// It was a syntax error, it can be fixed by adding the missing part (1 of 2 parentheses)
1818// c) Identify all the lines that are variable reassignment statements
19- // 4, 5
19+ // 4, 5, 7, 8
2020// d) Identify all the lines that are variable declarations
2121// 1, 2
2222// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
You can’t perform that action at this time.
0 commit comments