WTFJS, also known as What the f*ck JavaScript, is a handbook of funny and tricky JavaScript examples. It is for developers who already know the language and want to explore its odd corners, or to understand why everyday code sometimes breaks.
Each example shows a surprising result, such as NaN comparisons, loose equality and type coercion, or the quirk of document.all, followed by an explanation. The handbook can be read online or installed as a command-line manual with npm, and it links to translations in several languages.
Categories
Similar apps
Open JSON dataset of Tang and Song poems, Song lyrics and other classical Chinese texts
A curated list of false beliefs programmers hold, from dates and names to addresses