TWITTER FEED:

Loading contents...

OXFORD FRIEND'S BLOGS

Prag-mati-cal

DEEPAK Deepak Dhungana

BERNIE Bernie-in-oxford

AUDREY-LAURE Audrey-Laure

NATHALIE Chez Nathalie... (Nathalie)

TOWANDA Towanda's corner


OTHER BLOGS

Nanban trade

Web de Gemma

Butterfingers (María)

Ante todo... mucha calma (El blog de el Meyer)

Scientific Vagabond | The old Ideas Muertas

Posiblemente Desidia (Jaime)

la hora de nico

Teorizen (Reflexiones, axiomas, chorradas y demás teorías)

Web de Vi­ctor

Enterrado en la corriente del tiempo


MY PICTURES

my dog

Going to the party

Group at uni

CLUETRAIN

Thursday, August 26, 2010

False is true... on Javascript

I've been reading a lot about Javascript recently, and I want to share this little piece of code that, if you are a programmer, will cause a lot of confussion to you when you test it:


var myBoolean = new Boolean(false);
if (myBoolean) {
alert(myBoolean);
}
In case you want to know why this happens I recommend you to take a look at some of the lectures from Douglas Crockford that I already introduced in a previous article.


Image taken from: extraketchup

Labels: ,