Skip to content

Commit 84c9f96

Browse files
committed
Add error explanation in 1-percentage-change.js
1 parent b23cf15 commit 84c9f96

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,8 @@ console.log(`The percentage change is ${percentageChange}`);
2828
// Line 4: Number()
2929
// Line 5: priceAfterOneYear.replaceAll("," "")
3030
// Line 5: Number()
31-
// Line 9: console.log()
31+
// Line 9: console.log()
32+
33+
// b) Line 5 seems to broken.
34+
// Error message - SyntaxError: missing ) after argument list
35+
// Reason for error: There is a missing comma between two arguments of replaceAll.

0 commit comments

Comments
 (0)