Skip to content

Commit e012839

Browse files
committed
[variables] swap length and i declaration order.
1 parent e1f0515 commit e012839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@
371371
var items = getItems(),
372372
goSportsTeam = true,
373373
dragonball,
374-
i,
375-
length;
374+
length,
375+
i;
376376
```
377377
378378
- Assign variables at the top of their scope. This helps avoid issues with variable declaration and assignment hoisting related issues.

0 commit comments

Comments
 (0)