Advertisement
Liliana797979

landscaping of yards

Nov 26th, 2020
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function landscapingOfYards(input) {
  2.     let squareMeters = Number(input.shift());
  3.     let price = squareMeters * 7.61;
  4.     discount = price * 0.18;
  5.     finalPrice = price - discount;
  6.  
  7.  
  8.     console.log(`The final price is: ${finalPrice.toFixed(2)} lv.`);
  9.     console.log(`The discount is: ${discount.toFixed(2)} lv.`);
  10. }
  11.  
  12. landscapingOfYards(["540"]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement