User talk:Jameshadong

Do Viet Hung
Avoid using new Object in js

Use === Comparison Have "use strict" mode Always declare and initialize variables JavaScript Objects are Mutable: var x = y; Object JavaScript performance: Reduce DOM access; reduce activity in loops; reduce DOM sizes; avoid unecessary variables Put scripts at the bottom of the page body adding methods to the constructor by using prototype property