Jump to content

Confused!


Amit20

Recommended Posts

Hello Friends....

 

I was going through js tutorials online and now i have got this doubt;

 

z = new Boolean(false);
if(z)        //Condition returns true 

 

i just want to know why the value of z  evaluates to true and

and when i alert the value of z it comes out to false.

 

Plz Explain!!! :confused:

Link to comment
https://forums.phpfreaks.com/topic/247116-confused/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.