File tree Expand file tree Collapse file tree
Sprint-2/3-mandatory-interpret Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,14 +12,15 @@ 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.
15+ // There are 5 function calls.
1616// carPrice = Number(carPrice.replaceAll(",", ""));
1717// priceAfterOneYear = Number(priceAfterOneYear.replaceAll("," ""));
1818// console.log(`The percentage change is ${percentageChange}`);
1919
2020
2121// 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?
2222// The error is coming from line 5. There is a separator missing from the function call. Insert a comma to fix the problem.
23+
2324// c) Identify all the lines that are variable reassignment statements
2425
2526// d) Identify all the lines that are variable declarations
You can’t perform that action at this time.
0 commit comments