Skip to content

Commit b56bc9b

Browse files
committed
Correct console log line in percentage explanation
1 parent f467e43 commit b56bc9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-2/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
// - line 5: priceAfterOneYear.replaceAll(",", "")
1818
// - line 4: Number(...)
1919
// - line 5: Number(...)
20-
// - line 9: console.log(...)
20+
// - line 10: console.log(...)
2121

2222
// 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?
2323
// The error occurs at line 5 because the syntax is invalid: replaceAll("," "") is missing a comma between the arguments.

0 commit comments

Comments
 (0)