JavaScript Coding Standards
Last updated
Was this helpful?
Last updated
Was this helpful?
For our JavaScript code, we chose to follow the well-detailed and documented . Code should be written in ECMAScript 6 and Babel will transpile it into ECMAScript 5 for a wider browser compatibility.
Some noteworthy rules:
Always use semicolons at the end of an instruction.
Use soft tabulations with two spaces to indent.
Use braces with all multi-line blocks.
Do not hesitate to look at their .