variables example - moved length declaration to newline

This commit is contained in:
oslek
2013-02-17 14:17:16 -08:00
parent ce104eaa5b
commit cea75d10ae

View File

@@ -371,7 +371,8 @@
var items = getItems(),
goSportsTeam = true,
dragonball,
i, length;
i,
length;
```
- Assign variables at the top of their scope. This helps avoid issues with variable declaration and assignment hoisting related issues.