Deviopath › JavaScript

Minutes to Hours

Easy · Math

Write a function formatMinutes that turns a number of minutes into a string "H:MM".

Hours have no padding, but minutes always use two digits (hint: padStart).

Next: Sum of Digits