forked from airbnb/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The guide is in favor of declaring multiple variables with only 1 var statement. For example:
var items = getItems(),
goSportsTeam = true,
dragonball = 'z';This article presents some good argument against doing it that way . I agree with almost everything in this article; except I don't believe single var statement is more readable.
Better, would be:
var items = getItems();
var goSportsTeam = true;
var dragonball = 'z';Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels