Advertisement
Didart

Basketball Equipment

Mar 4th, 2022
945
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function basketballEquipment(input) {
  2.  
  3.     let tax = Number(input[0]);
  4.  
  5.     let shoes = tax * 0.60;
  6.     let outfit = shoes * 0.80;
  7.     let ball = outfit / 4;
  8.     let extra = ball / 5;
  9.  
  10.     let finalPrice =  tax + shoes + outfit + ball + extra;
  11.  
  12.     console.log(finalPrice);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement