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 117 views
1 answer 131 views
1 answer 126 views
1 answer 135 views
1 answer 137 views
1 answer 147 views
147 views asked Oct 20, 2020 by avibootz
...