mirror of
https://github.com/ryanmcdermott/clean-code-javascript.git
synced 2025-04-08 06:51:48 +08:00
Make example more succinct
"PER" has the same meaning as "IN_A" but is less verbose
This commit is contained in:
parent
da76556c97
commit
753d6d8b33
@ -100,9 +100,9 @@ setTimeout(blastOff, 86400000);
|
||||
|
||||
```javascript
|
||||
// Declare them as capitalized named constants.
|
||||
const MILLISECONDS_IN_A_DAY = 60 * 60 * 24 * 1000; //86400000;
|
||||
const MILLISECONDS_PER_DAY = 60 * 60 * 24 * 1000; //86400000;
|
||||
|
||||
setTimeout(blastOff, MILLISECONDS_IN_A_DAY);
|
||||
setTimeout(blastOff, MILLISECONDS_PER_DAY);
|
||||
```
|
||||
|
||||
**[⬆ back to top](#table-of-contents)**
|
||||
|
Loading…
x
Reference in New Issue
Block a user