Skip to content

Commit 209b644

Browse files
committed
Clarify error explanation regarding missing comma in replaceAll function call.
1 parent 1421faf commit 209b644

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
@@ -21,7 +21,7 @@ There are five function calls in this file. The lines where function calls are m
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

24-
The error is occurring on line 5 because the "," character was ommited in the replaceAll function, to fix the problem,
24+
The error is occurring on line 5 because a comma is missing between the arguments in the replaceAll function, to fix the problem,
2525
we need to include the "," character in the replaceAll function like this: priceAfterOneYear.replaceAll(",", "")
2626

2727
// c) Identify all the lines that are variable reassignment statements

0 commit comments

Comments
 (0)