Fundamentals
Strings
Data Types
function minutes(num){ const minutes = num % 60 const hours = (num - minutes)/60 return `${hours}:${("0" + minutes).slice(-2)}` }
- function minutes(num){
return num % 60 < 10 ? Math.floor(num/60) + ':' + '0' + (num % 60) : Math.floor(num/60) + ':' + (num % 60)- const minutes = num % 60
- const hours = (num - minutes)/60
- return `${hours}:${("0" + minutes).slice(-2)}`
- }