null vs underfined

underfined is a type, but null is a type of Object.

trace(name);

//get null, because there is no such an Object.

var name:String;

//now name has been declared, but no value, name is underfined. some types default value given. eg: boolean type default value is false

 

posted @ 2011-08-29 12:32  web k  阅读(269)  评论(0编辑  收藏  举报