Down the Rabbit Hole: Javascript in Wonderland

Talk by Claudia Hernández, on a few of Javascript’s oddities and (un)expected behaviors:

slide_0

There’s a presentation embedded in this post. View it on Speaker Deck.

For a language originally created in 10 days it surely has a lot of quirks and perks many JS developers are unaware of. Sometimes, it might even seem like we fell down the rabbit hole only to find that NaN is actually a Number, undefined can be defined, +!![] equals 1, Array.sort() may not work as you suspected and so much other nonsense that can trip any JS developer’s mind.

Related: Equality in JavaScript, wtfjs, and – save best for last – wat

Published by Bramus!

Bramus is a frontend web developer from Belgium, working as a Chrome Developer Relations Engineer at Google. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.