We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8977bb2 commit aa69c9fCopy full SHA for aa69c9f
1 file changed
Sprint-1/3-mandatory-interpret/1-percentage-change.js
@@ -17,7 +17,7 @@ console.log(`The percentage change is ${percentageChange}`);
17
//3. Line 8: console.log(`The percentage change is ${percentageChange}`)
18
19
// 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?
20
- //The error is in line 5, the error is occurring because there was a comma missing here; ("," "").
+ //The error is in line 5, the error is occurring because "comma missing "," and "" for priceAfterOneYear.replaceAll("," "") function call.
21
22
// c) Identify all the lines that are variable reassignment statements
23
//carPrice = Number(carPrice.replaceAll(",", ""));
0 commit comments