We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e072bbc commit dc2278cCopy full SHA for dc2278c
1 file changed
Sprint-1/3-mandatory-interpret/1-percentage-change.js
@@ -12,8 +12,11 @@ console.log(`The percentage change is ${percentageChange}`);
12
// Read the code and then answer the questions below
13
14
// 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.
+// There are 5 function calls in this file.
16
// They are on lines 4, 5, 10.
17
+// Line 4: Number(), replaceAll()
18
+// Line 5: Number(), replaceAll()
19
+// Line 10: console.log()
20
21
// 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?
22
// The error is coming from line 5. This happens because there is a syntax error in the replaceAll function call.
0 commit comments