Funny Javascript (Nobody is Perfect!)

javascript as the rest of the programming languages has good and bad parts.

Here it goes some funny conditions results that make us think about why didn’t we choose working as lawyers, doctors or whatever other time consuming occupation but programmer:

"" == "0"     // false

0 == ""      // true

0 == "0"    // true

null == undefined      // true

" \t\r\n " == 0      // true

You can play and check the previous expressions here:

Result

true

0 comments ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment


1 * = four