How to hours to milliseconds in JavaScript

1 Answer

0 votes
const hours = 3;

const milliseconds = 1000 * 60 * 60 * hours;

console.log(milliseconds);
  
  
  
  
/*
run:
  
10800000
  
*/

 



answered Apr 7, 2022 by avibootz
...