3 ms·
Airbnb JavaScript Style Guide
- AirbnbNerds 14y agoWe hope it helps!
- akvlad 14y agoI'll agree with many of the guidelines, but some are just personal taste. For instance, I like to indent my JS with 4 spaces and so does Douglas Crockford (http://javascript.crockford.com/code.html http://javascript.crockford.com/code.html)
- OriginalSyn 14y agoI prefer to emulate the prevailing standard of my server side language when it comes to indentation, so when I'm working with PHP in the back end it's 4 space when I'm working with Ruby it's 2.