Skip to content

Commit 2df0f01

Browse files
committed
updates on function calls
1 parent 64e56f7 commit 2df0f01

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ console.log(`The percentage change is ${percentageChange}`);
1212
// Read the code and then answer the questions below
1313

1414
// a) How many function calls are there in this file? Write down all the lines where a function call is made
15-
//There are three function calls here. "replaceAll" which replaces every "," with an empty space, therefore removing the comma.
16-
// We equally have console.log which prints out.
17-
//The last function is Number() which changes everything in it into a number/integer. Here, it changes String to numbers.
15+
//There are five function calls here. "replaceAll" on line 4 and 5 which replaces every "," with an empty space, therefore removing the comma.
16+
// We equally have console.log which prints out on line 10.
17+
//The last function is Number() on line 4 and 5 which changes everything in it into a number/integer. Here, it changes String to numbers.
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?
2020
//Line 5 was missing a separation comma.

0 commit comments

Comments
 (0)