How to represent a day in milliseconds with Node.js

1 Answer

0 votes
// ️                           ms    sec  min  hour
const oneDayInMilliseconds = 1000 * 60 * 60 * 24;
 
console.log(oneDayInMilliseconds);
 
 
 
 
/*
run:
 
86400000
 
*/

 



answered Mar 9, 2022 by avibootz

Related questions

1 answer 211 views
1 answer 199 views
1 answer 208 views
1 answer 242 views
1 answer 213 views
1 answer 204 views
...