Feb 24, 2008

null vs undefined

In javascript, they are different concept.
var d ={};
d.x = null;
alert(d.x); //null
alert(d.y); //undefined