Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function happyBirthday(arg1, arg2, arg3, arg4, arg5) {
- let cakePrice = Number(arg1);
- let drinksPrice = Number(arg2);
- let animatorPrice = Number(arg3);
- let hallRental = Number(arg4);
- let budget = Number(arg5);
- cakePrice = hallRental * 0.20;
- drinksPrice = cakePrice - 0.45;
- animatorPrice = (1 * 2250) / 3;
- budget = hallRental + cakePrice + drinksPrice + animatorPrice;
- console.log(budget);
- }
- happyBirthday(2250);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement