Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,15 @@ const MILLISECONDS_PER_DAY = 60 * 60 * 24 * 1000; //86400000;
setTimeout(blastOff, MILLISECONDS_PER_DAY);
```

_Note: depending on context using multiply can hit performance. Most modern browsers are now support numeric separator feature which allows to do the following:_

```javascript
const MILLISECONDS_PER_DAY = 86_400_000; //86400000;

setTimeout(blastOff, MILLISECONDS_PER_DAY);
```
More info can be found here: https://caniuse.com/mdn-javascript_grammar_numeric_separators

**[⬆ back to top](#table-of-contents)**

### Use explanatory variables
Expand Down