🔥 Burn Fat Fast. Discover How! 💪

#challenge Video Length in Seconds | #easy You are given t | SeasonedDev

#challenge

Video Length in Seconds | #easy

You are given the length of a video in minutes. The format is mm:ss (e.g.: 02:54). Create a function that takes the video length and return it in seconds.

Examples:

minutesToSeconds("01:00") ➞ 60
minutesToSeconds("13:56") ➞ 836
minutesToSeconds("10:60") ➞ false

For your convenience: jsfiddle | codepen.

Leave your solutions in the comments. The solution will be posted below in a couple of hours

#interview