Skip to content

Commit 3145e30

Browse files
committed
answered a)
1 parent a5213f2 commit 3145e30

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +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.
16+
// carPrice = Number(carPrice.replaceAll(",", ""));
17+
// priceAfterOneYear = Number(priceAfterOneYear.replaceAll("," ""));
18+
// console.log(`The percentage change is ${percentageChange}`);
19+
1520

1621
// 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?
1722

0 commit comments

Comments
 (0)