borisova936935

Untitled

Oct 4th, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function petShop(input){
  2.     let dogs = Number(input[0]);
  3.     let animals = Number(input[1]);
  4.     let dogFood = dogs * 2.50;
  5.     let animalFood = animals * 4;
  6.     let result = dogFood + animalFood;
  7.     console.log(`${result} lv.`);
  8.     }
  9.     petShop(["5", "4"])
  10.    
Advertisement
Add Comment
Please, Sign In to add comment