Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js days to hours

var days = parseInt(prompt("Please enter days:"));
var hours = days * 24;
console.log(hours + " Hours");

//Output:
Please enter days: 20
480 Hours
 
PREVIOUS NEXT
Tagged: #js #days #hours
ADD COMMENT
Topic
Name
5+2 =