JavaScript doesn’t have a PEP8 equivalent. There’s no official rule about how code should be indented. Community styleguides (of which there are many) have no clear consensus. What’s a coder to do? I wrote a script to clone the 100 most watched JS projects on GitHub1 and determine the type of whitespace they use for indenting their .js files. Here’s a summary: Compare this to the universal dominan