Skip to content

Commit 078e937

Browse files
Fix comment on function call count in 1-percentage-change.js
Updated the comment to correct the number of function calls from 6 to 4; previously included method calls.
1 parent 461e977 commit 078e937

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ console.log(`The percentage change is ${percentageChange}`);
1313

1414
// a) How many function calls are there in this file? Write down all the lines where a function call is made
1515

16-
// Function calls are determined by the presence of parentheses "()" after a function name.
17-
// Therefore in this file, there are 6 function calls:
16+
//There are 4 function calls in this file.
1817

1918
// 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?
2019

0 commit comments

Comments
 (0)