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 206 views
1 answer 200 views
1 answer 213 views
1 answer 224 views
1 answer 230 views
230 views asked Oct 20, 2020 by avibootz
1 answer 225 views
...