w3schools – Javascript Hoisting

w3schools – Javascript Use Strict
Strict Mode
makes it easier to write “secure” JavaScript
it doesn’t allow bad syntax
reserved keywords in strict mode

w3schools – JavaScript Style Guide + Coding Conventions
Spaces around operators
4 spaces for indentation
end simple statements with ;
line length < 80
use consistant naming conventions

w3schools – JavaScript Best Practices
avoid
global variables
new
==
eval()

w3schools – JavaScript Common Mistakes

9,986:01 Left / 13:59 Done

Advertisements