There was an error while loading. Please reload this page.
1 parent f467e43 commit b56bc9bCopy full SHA for b56bc9b
1 file changed
Sprint-2/3-mandatory-interpret/1-percentage-change.js
@@ -17,7 +17,7 @@ console.log(`The percentage change is ${percentageChange}`);
17
// - line 5: priceAfterOneYear.replaceAll(",", "")
18
// - line 4: Number(...)
19
// - line 5: Number(...)
20
-// - line 9: console.log(...)
+// - line 10: console.log(...)
21
22
// 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?
23
// The error occurs at line 5 because the syntax is invalid: replaceAll("," "") is missing a comma between the arguments.
0 commit comments