How to represent a day in milliseconds with JavaScript

1 Answer

0 votes
// ️                           ms    sec  min  hour
const oneDayInMilliseconds = 1000 * 60 * 60 * 24;

console.log(oneDayInMilliseconds);




/*
run:

86400000

*/

 



answered Mar 7, 2022 by avibootz

Related questions

1 answer 188 views
1 answer 202 views
1 answer 197 views
1 answer 211 views
1 answer 220 views
1 answer 227 views
227 views asked Oct 20, 2020 by avibootz
1 answer 221 views
...