popovIliya

March-2022-FirstStepsInCoding-Lab-SoftUni - Person Project

Feb 26th, 2022
1,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sumHours(input){
  2. let name = input[0];
  3. let hours = 3;
  4. let projects = Number(input[1]);
  5. let sum = projects * hours;
  6. console.log(`The architect ${name} will need ${sum} hours to complete ${projects} project/s.`);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment