AllTop Viral!

The most viral news stories that you need to know about.

10 oddities and secrets about JavaScript

Posted by / June 1, 2011

Media_httpmediasmashi_equvh

Experienced web developers know that JavaScript is a strange and wily mistress. While beautiful, she comes with her share of confusing rules and well-kept secrets. Thankfully, Smashing Magazine is here to decode the questionable curiousities for us. See some of them below:

  • NaN is a number.
  • An array with no keys = = false (about truthy and falsy).
  • replace() can accept a callback function.

More on all ten at Smashing Magazine.

All the top tech tidbits.

Comments are off for this post.

  • FrancoisPrigent

    1 tip. Waiting for the 9 others.