Skip to content

Commit b23cf15

Browse files
committed
Add solution comments detailing function calls in 1-percentage-change.js
1 parent 5486566 commit b23cf15

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@ console.log(`The percentage change is ${percentageChange}`);
2020
// d) Identify all the lines that are variable declarations
2121

2222
// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
23+
24+
25+
//Solution
26+
// a) There are 5 function calls on lines 4, 5, and 9.
27+
// Line 4: carPrice.replaceAll(",","")
28+
// Line 4: Number()
29+
// Line 5: priceAfterOneYear.replaceAll("," "")
30+
// Line 5: Number()
31+
// Line 9: console.log()

0 commit comments

Comments
 (0)