Skip to content

Commit 293350c

Browse files
committed
Updates on mandatory interpretation
1 parent ac3cfef commit 293350c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +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 two function calls here. replaceAll and console.log
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.
1618

1719
// 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?
1820
//Line 5 was missing a separation comma.

0 commit comments

Comments
 (0)