Advertisement
Spocoman

Series Calculator

Mar 15th, 2022 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function seriesCalculator(input) {
  2.     let series = input[0];
  3.     let seasons = Number(input[1]);
  4.     let episodes = Number(input[2]);
  5.     let time = Number(input[3]);
  6.  
  7.     let minutes = Math.floor(seasons * episodes * time * 1.20 + seasons * 10);
  8.     console.log(`Total time needed to watch the ${series} series is ${minutes} minutes.`);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement