Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldF committed Sep 17, 2024
1 parent 3dc8743 commit 1f16619
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lesson02.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@ Ada and Alan volunteered to pay for the tickets. Use JavaScript to compute how m

```js
let totalPrice = 50; // from the task above
let discountedPrice = totalPrice * 0.9;
let discount = 0.1; // 10 percent discount
let discountedPriceMultiplier = 1 - discount;
let discountedPrice = totalPrice * discountedPriceMultiplier;
let budget = 40;
let canPay = budget >= discountedPrice;
```

0 comments on commit 1f16619

Please sign in to comment.