Skip to content

Commit 3bd6823

Browse files
authored
Document function calls and error analysis
Added comments to document function calls and error identification.
1 parent ba73c23 commit 3bd6823

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ console.log(`The percentage change is ${percentageChange}`);
1212

1313
// a) How many function calls are there in this file? Write down all the lines where a function call is made
1414
// Answer to a): There are 4 function calls in this file, which are on the lines 4, 5, 6 and 7 .
15+
//and additionally, there is a function call on line 9, which is the console.log() statement. So 5 function calls in total.
1516
//
1617
// 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?
1718
// Answer to b): The error is coming from line 5, where coma is missing in "replaceAll()"" function.

0 commit comments

Comments
 (0)