Search

10/06/2008

Matintainable javascript

Nicholas Zakas: "Maintainable JavaScript" on Yahoo! Video
Avoid null comparisons
* Use instanceof for sepcific types of objects
if (value instanceof constructor){
* Use typeof to test for string, number, Boolean
if (typeof value == "string") {

沒有留言: