logo image

JavaScript program to convert hours to minutes


Following program shows you how to convert hours to minutes. In this program we get hours from user once we get those we need to multiply with 60 so that we get in minutes

var hours = parseInt(prompt("Please enter hours:"));
var minutes = hours * 60;
console.log(minutes + " Minutes");


Please enter hours:
180 Minutes