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 190 views
1 answer 207 views
1 answer 200 views
1 answer 216 views
1 answer 225 views
1 answer 232 views
232 views asked Oct 20, 2020 by avibootz
1 answer 226 views
...