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