Standards
Class
Use a capital letter for constructors e.g:
function Animal() {
this.breed = "test";
}
Note: Make sure you construct class objects with the new
keyword e.g:
var f = new Animal();
Semicolons
From JavaScript, The Definitive Guide, section 2.4, Optional Semicolons:
“Omitting semicolons is not good programming practice; you should get in the habit of using them”…
Unicode
From JavaScript, The Definitive Guide, section 2.1, Character Set:
JavaScript programs are written using the Unicode character set.