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 186 views
1 answer 199 views
1 answer 195 views
1 answer 210 views
1 answer 219 views
1 answer 225 views
225 views asked Oct 20, 2020 by avibootz
1 answer 219 views
...