There was an error while loading. Please reload this page.
1 parent c66d6a4 commit 5e59c8aCopy full SHA for 5e59c8a
1 file changed
Sprint-1/3-mandatory-interpret/1-percentage-change.js
@@ -25,7 +25,7 @@ console.log(`The percentage change is ${percentageChange}`);
25
a) There are 5 calls made:
26
carPrice = Number(carPrice.replaceAll(",", ""));
27
priceAfterOneYear = Number(priceAfterOneYear.replaceAll("," ""))
28
-b) Error on line 5 for "," it is missing the seperating , between "," and "".
+b) Error on line 5 for "," it is missing the seperating , between arguments.
29
c) 4 and 5
30
d) 1 and 2, 7 and 8,
31
e) It removes the , from the string and replaces it with nothing. Used to help change the string into a number with the "Number" function.
0 commit comments