r/javascript • • Sep 12 '16

JavaScript Standard Style Guide

https://github.com/feross/standard
0 Upvotes

29 comments sorted by

View all comments

16

u/MoTTs_ Sep 12 '16

Space after function name

function name (arg) {  
  // ...  
}

When and how did that become a thing?

4

u/azium Sep 12 '16

Not sure how to answer this question, but I've been doing this myself for quite some time. It helps me quickly scan what is a function definition vs a function call.

But then again nowadays I never use the function keyword, so shrug

1

u/Klathmon Sep 13 '16

That's the reasoning. The space vs no-space helps determine definition vs invocation.