General principles
Focus on writing well
Names must match contents
Functions must do what their names say—no more and no less
Variables must contain what their names say—no more and no less
Anything which is public in a module must have header documentation
Define the behaviour first and then write the code
null vs undefined
null vs undefinedLast updated