Skip to content

Commit aa69c9f

Browse files
committed
Clarify error explanation in comments regarding missing comma in priceAfterOneYear.replaceAll function call
1 parent 8977bb2 commit aa69c9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ console.log(`The percentage change is ${percentageChange}`);
1717
//3. Line 8: console.log(`The percentage change is ${percentageChange}`)
1818

1919
// 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; ("," "").
20+
//The error is in line 5, the error is occurring because "comma missing "," and "" for priceAfterOneYear.replaceAll("," "") function call.
2121

2222
// c) Identify all the lines that are variable reassignment statements
2323
//carPrice = Number(carPrice.replaceAll(",", ""));

0 commit comments

Comments
 (0)