You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-1/3-mandatory-interpret/1-percentage-change.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,13 @@ console.log(`The percentage change is ${percentageChange}`);
23
23
24
24
//answers
25
25
26
-
/* a) there are there three
26
+
/* a) there are there five
27
27
carPrice.replaceAll(",", "")
28
28
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
+
30
33
31
34
/* b) priceAfterOneYear = Number(priceAfterOneYear.replaceAll(",", ""));
32
35
The issue is a syntax mistake in the brackets/quotes, and JavaScript throws a SyntaxError before running.
0 commit comments