Skip to content

Commit 263d2b1

Browse files
authored
fix "Use searchable names" section
It doesn't need to be a global constant. JavaScript constants are block-scoped.
1 parent 72fd417 commit 263d2b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ setTimeout(blastOff, 86400000);
8888

8989
**Good:**
9090
```javascript
91-
// Declare them as capitalized `const` globals.
91+
// Declare them as capitalized named constants.
9292
const MILLISECONDS_IN_A_DAY = 86400000;
9393

9494
setTimeout(blastOff, MILLISECONDS_IN_A_DAY);

0 commit comments

Comments
 (0)