[code=JAVASCRIPT]
if(typeof obj_name){}
if(typeof obj_name!=undef ined){}
[/code]
What is the difference between these two?
Basically undefined returns false ....if i want to check whether a object exists or not can't i do that simply using
[CODE=JAVASCRIPT]if(obj_ref){}[?CODE]
Could you explain ?
if(typeof obj_name){}
if(typeof obj_name!=undef ined){}
[/code]
What is the difference between these two?
Basically undefined returns false ....if i want to check whether a object exists or not can't i do that simply using
[CODE=JAVASCRIPT]if(obj_ref){}[?CODE]
Could you explain ?
Comment