- We use 4 spaces indents, no tabs.
- We use Allman indent style:
functionsum(n,p){varr=n+p;returnr;}- Naming convention
varsomeVariable;//Camel case starting lowercasefunctionsome_function()//Lowercase with underscores{//do stuff}varnewObject=newObjectType();//Objects with camel case starting uppercase- We use HTML5 with the following conventions for classes and IDs:
<divid="someId" class="some-class"><p>Block elements should always be on their own line, but <em>inline elements<em> can be used this way</p></div>