WTFJS

Funny and tricky JavaScript examples that show surprising behavior, explained one by one

GitHub 38k Reads Multiple languages WTFPL Web

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

Chinese Poetry Database

Curiosities Reads Chinese

54k

Open JSON dataset of Tang and Song poems, Song lyrics and other classical Chinese texts

Awesome Falsehood

Curiosities Reads

28k

A curated list of false beliefs programmers hold, from dates and names to addresses