Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 383dd49 + 05089ba commit e7ef70eCopy full SHA for e7ef70e
README.md
@@ -79,21 +79,21 @@ can help identify unnamed constants.
79
80
**Bad:**
81
```javascript
82
-// What the heck is 86400 for?
+// What the heck is 86400000 for?
83
setTimeout(() => {
84
this.blastOff()
85
-}, 86400);
+}, 86400000);
86
87
```
88
89
**Good**:
90
91
// Declare them as capitalized `const` globals.
92
-const SECONDS_IN_A_DAY = 86400;
+const MILLISECONDS_IN_A_DAY = 86400000;
93
94
95
96
-}, SECONDS_IN_A_DAY);
+}, MILLISECONDS_IN_A_DAY);
97
98
99
**[⬆ back to top](#table-of-contents)**
0 commit comments