We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9337966 + efc5607 commit 8498a6fCopy full SHA for 8498a6f
Sprint-1/interpret/percentage-change.js
@@ -2,7 +2,7 @@ let carPrice = "10,000";
2
let priceAfterOneYear = "8,543";
3
4
carPrice = Number(carPrice.replaceAll(",", ""));
5
-priceAfterOneYear = Number(priceAfterOneYear.replaceAll(",", ""));
+priceAfterOneYear = Number(priceAfterOneYear.replaceAll("," ""));
6
7
const priceDifference = carPrice - priceAfterOneYear;
8
const percentageChange = (priceDifference / carPrice) * 100;
0 commit comments