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.
1 parent f0278ef commit 10bece9Copy full SHA for 10bece9
README.md
@@ -93,19 +93,21 @@ Make your names searchable.
93
94
**Bad:**
95
```javascript
96
-// What the heck is 525600 for?
97
-for (var i = 0; i < 525600; i++) {
98
- runCronJob();
99
-}
+// What the heck is 86400 for?
+setTimeout(() => {
+ this.blastOff()
+}, 86400);
100
```
101
102
**Good**:
103
104
// Declare them as capitalized `const` globals.
105
-const MINUTES_IN_A_YEAR = 525600;
106
-for (var i = 0; i < MINUTES_IN_A_YEAR; i++) {
107
108
+const SECONDS_IN_DAY = 86400;
+
109
+}, SECONDS_IN_A_DAY);
110
111
112
**[⬆ back to top](#table-of-contents)**
113
0 commit comments