File tree Expand file tree Collapse file tree
Sprint-1/3-mandatory-interpret Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments