Addressing comments (reverting symbolic constants to named constants)

This commit is contained in:
Ioannis Brant-Ioannidis 2023-02-15 18:37:00 +04:00
parent d1e2cfb632
commit 9004fcde03

View file

@ -131,7 +131,7 @@ setTimeout(restart, 86400000);
**Good:**
```ts
// Declare them as capitalized symbolic constants.
// Declare them as capitalized named constants.
const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000; // 86400000
setTimeout(restart, MILLISECONDS_PER_DAY);