Google Javascript style guid and airbnb

Google Javascript style guid and more
Airbnb Javascript style guid

this article have a summary about google style guid.

I am glad that almost all the issue match my style. and I did a rough comparation to auirbnb at here.

Semicolons ARE required

Don’t use ES6 modules (yet)

Don’t use var anymore

Arrow functions are preferred

Use template strings instead of concatenation

Don’t use line continuations for long strings (use concatenation)

“for… of” is the preferred type of ‘for loop’

Use single quotes, not double quotes

One variable per declaration

  • Airbnb - Not mentioned

About Generators
Google did not mentioned but Airbnb suggest Don’t use generators for now


Total views.

© 2013 - 2024. All rights reserved.

Powered by Hydejack v6.6.1