JSFiddle - React, Tailwind, and code Playground
by deswolf
JavaScript
function getReadableTime(x) {
var hours= Math.floor(x/60);
var minutes= x% 60;
console.log(hours, minutes);
}
getReadableTime(4);
by deswolf
function getReadableTime(x) {
var hours= Math.floor(x/60);
var minutes= x% 60;
console.log(hours, minutes);
}
getReadableTime(4);