Add calculation for milliseconds in a day

This commit is contained in:
Yaniv Chekroun 2020-09-06 15:23:12 +03:00 committed by GitHub
parent 4d15e1cfb1
commit 365717f8bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ setTimeout(blastOff, 86400000);
```javascript
// Declare them as capitalized named constants.
const MILLISECONDS_IN_A_DAY = 86_400_000;
const MILLISECONDS_IN_A_DAY = 60 * 60 * 24 * 1000; //86400000;
setTimeout(blastOff, MILLISECONDS_IN_A_DAY);
```