denysdovhan

    denysdovhan/wtfjs

    πŸ€ͺ A list of funny and tricky JavaScript examples

    37.7K stars
    2.7K forks
    563 GitHub watchers
    Updated Nov 6, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    The project lists 79 contributors on GitHub.

    Use Cases & Benefits

    • Collects and explains funny, tricky, and unexpected JavaScript examples illustrating language quirks and edge cases.
    • Provides deep insights into JavaScript behavior with detailed explanations, helping developers understand confusing or counterintuitive code.
    • Use for learning JavaScript quirks and edge cases to deepen language understanding for beginners.
    • Use for referencing tricky JavaScript behaviors when debugging or reviewing complex code in professional development.
    • Use for teaching or presenting JavaScript oddities to engage audiences with entertaining yet educational examples.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    WTFPL

    Public-domain style: no conditions on use.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    A list of funny and tricky JavaScript examples

    JavaScript is a great language. It has a simple syntax, large ecosystem and, what is most important, a great community.

    At the same time, we all know that JavaScript is quite a funny language with tricky parts. Some of them can quickly turn our everyday job into hell, and some of them can make us laugh out loud.

    You can install this handbook using npm. Just run:

    You should be able to run wtfjs at the command line now. This will open the manual in your selected $PAGER. Otherwise, you may continue reading on here.

    The source is available here: https://github.com/denysdovhan/wtfjs

    Currently, there are these translations of wtfjs:

    Note: Translations are maintained by their translators. They may not contain every example, and existing examples may be outdated.

    Excerpt from the denysdovhan/wtfjs README on GitHub (WTFPL license). Β© its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    2.7K-7

    Open issues

    51+6

    Compared with peers in Education

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth

    denysdovhan/wtfjs compared with Education repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    rohitg00/ai-engineering-from-scratch78.3K+1.6K751 day ago
    mnfst/awesome-free-llm-apis12.8K+75475β€”
    luongnv89/claude-howto46.9K+44075161 days ago
    github/awesome-copilot41.0K+25175β€”
    ripienaar/free-for-dev141.8Kβ€”45β€”
    denysdovhan/wtfjs37.7Kβ€”40β€”
    Category median46.9K+59775β€”

    Discover Repositories

    Search across tracked repositories by name or description