borisova936935

Untitled

Oct 25th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function birthdayParty(input){
  2.  
  3. let rent = Number(input[0]);
  4.  
  5. let cakePrice = rent * 0.20;
  6. let drinksPrice = cakePrice - (cakePrice * 0.45)
  7. let animatorPrice = rent / 3;
  8.  
  9. let sum = rent + cakePrice + drinksPrice + animatorPrice;
  10. console.log(drinksPrice);
  11.  
  12. }
  13. birthdayParty(["2250"])
Advertisement
Add Comment
Please, Sign In to add comment