Skip to content

Commit 6edc642

Browse files
committed
corrected answeer a
1 parent 72dfb0c commit 6edc642

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)