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