Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function costs(input){
- let dogFoodPrice = 2.50;
- let catFoodPrice = 4;
- let dogPackage = parseInt(input[0]);
- let catPackage = parseInt(input[1]);
- let res = ((dogPackage * dogFoodPrice) + (catPackage * catFoodPrice));
- console.log(`${res} lv.`);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement