Hexlet doesn not really work properly in your browser, because it is pretty old.
Please, upgrade. Choose browser.


↳ Formatted time

Intro to Programming


Implement and export as default a function that takes an amount of minutes as input and returns a string representing time in this format: hh:mm.


formattedTime(5); // 00:05
formattedTime(15); // 00:15
formattedTime(60); // 01:00
formattedTime(67); // 01:07
formattedTime(175); // 02:55
formattedTime(600)); // 10:00
formattedTime(754); // 12:34


  • Use Math.floor(number) to round the number down.
Start challenge Successful completion: 92%

Last code review

User Updated at Submissions count
joisadler 09 Mar 09:41 1