Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function landscapingOfYards(input) {
- let squareMeters = Number(input.shift());
- let price = squareMeters * 7.61;
- discount = price * 0.18;
- finalPrice = price - discount;
- console.log(`The final price is: ${finalPrice.toFixed(2)} lv.`);
- console.log(`The discount is: ${discount.toFixed(2)} lv.`);
- }
- landscapingOfYards(["540"]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement