Skip to content

Commit b7acf7c

Browse files
committed
Fix console log placement for percentage change output in 1-percentage-change.js
1 parent d60c972 commit b7acf7c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The lines that are variable declarations are:
3939
2. let priceAfterOneYear = "8,543";
4040
3. const priceDifference = carPrice - priceAfterOneYear;
4141
4. const percentageChange = (priceDifference / carPrice) * 100;
42+
5. console.log(`The percentage change is ${percentageChange}`);
4243

4344
// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
4445
The expression Number(carPrice.replaceAll(",", "")) is performing two operations:

0 commit comments

Comments
 (0)