Skip to content

Commit dc2278c

Browse files
committed
Finding more function call
1 parent e072bbc commit dc2278c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ 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 3 function calls in this file.
15+
// There are 5 function calls in this file.
1616
// They are on lines 4, 5, 10.
17+
// Line 4: Number(), replaceAll()
18+
// Line 5: Number(), replaceAll()
19+
// Line 10: console.log()
1720

1821
// 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?
1922
// The error is coming from line 5. This happens because there is a syntax error in the replaceAll function call.

0 commit comments

Comments
 (0)