Comma-First JavaScript
At first I was a little skeptical about putting commas first but now that I’ve seen the code from Rhyan Dahl, I’m convinced. Just look at how easy it is to spot the error in the Comma-First example.
Standard Style
var a = "ape",
b = "bat",
d = "dog"
e = "elf",
f = "fly",
i = "ibu";
Comma-First Style
var a = "ape"
, b = "bat"
, d = "dog"
e = "elf"
, f = "fly"
, i = "ibu";
Notes
-
unmeasuredcr liked this
-
sprucepatria liked this
-
repercussper liked this
-
swellbedlam liked this
-
oldnyoungfreesports liked this
-
legsnnylonscrazycelebs liked this
-
patterbusy liked this
-
bitsonthewire liked this
-
bytecast liked this
-
dowding posted this