Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Javascript :: quote 
Javascript :: react.dom 
Javascript :: what is a heap in javascript 
Javascript :: axios delete 
Javascript :: math. javascript 
Javascript :: node.js error handling 
Javascript :: js chrome extension get current url 
Javascript :: react animations 
Javascript :: Javascript async await & Promise 
Javascript :: react catch error in component 
Javascript :: end of file expected json 
Javascript :: rxjs of 
Javascript :: react facebook login 
Javascript :: for in and for of in js 
Javascript :: vue js props 
Javascript :: what is auth guard in angular 
Javascript :: react-native-image-viewing 
Javascript :: Create array literal 
Javascript :: jquery plugins 
Javascript :: vue js 
Javascript :: how to take last element of array javascript 
Javascript :: make button disabled if input is empty angular 
Javascript :: object model javascript 
Javascript :: set timer 
Javascript :: functions and variables javascript 
Javascript :: javascript if else 
Javascript :: open source 
Javascript :: replace all swear words using bookmarklet 
Javascript :: chrome console print to variable to json 
Javascript :: get JSON information into html control with javascript 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =