Skip to content

Commit d3c7750

Browse files
add more functions
1 parent ee92c6c commit d3c7750

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ console.log(`The percentage change is ${percentageChange}`);
2323

2424
//answers
2525

26-
/* a) there are there three
26+
/* a) there are there five
2727
carPrice.replaceAll(",", "")
2828
Number(carPrice.replaceAll(",", ""))
29-
Number(priceAfterOneYear.replaceAll(",", ""))*/
29+
Number(priceAfterOneYear.replaceAll(",", ""))
30+
console.log(...) -
31+
(priceDifference / carPrice) * 100 - line 7 (this is an expression that involves division and multiplication, but it does not involve a function call)*/
32+
3033

3134
/* b) priceAfterOneYear = Number(priceAfterOneYear.replaceAll(",", ""));
3235
The issue is a syntax mistake in the brackets/quotes, and JavaScript throws a SyntaxError before running.

0 commit comments

Comments
 (0)