There was an error while loading. Please reload this page.
1 parent f1cf999 commit e773daeCopy full SHA for e773dae
1 file changed
Sprint-2/3-mandatory-interpret/1-percentage-change.js
@@ -3,7 +3,7 @@ let priceAfterOneYear = "8,543";
3
4
carPrice = Number(carPrice.replaceAll(",", ""));
5
priceAfterOneYear = Number(priceAfterOneYear.replaceAll(",", ""));
6
-console.log(carPrice)
+console.log(carPrice);
7
const priceDifference = carPrice - priceAfterOneYear;
8
const percentageChange = (priceDifference / carPrice) * 100;
9
0 commit comments