Hacker GitHub

← All repos

denysdovhan/wtfjs

View on GitHub ↗ ★ 37,687 JavaScript

🤪 A list of funny and tricky JavaScript examples

27 mentions on Hacker News by 27 people: 6 stories, 21 comments · first 2017-07-31 · latest 2026-08-14

Mentions per year 27 mentions · busiest year 2017 (5)
20082026
  1. What language doesn’t have its own set of absolutely monstrous footguns? https://github.com/denysdovhan/wtfjs - https://github.com/satwikkansal/wtfpython - https://news.ycombinator.com/item?id=31216080 -…
  2. Yeah... I'm just saying I haven't seen anything close to these things: https://github.com/denysdovhan/wtfjs https://github.com/satwikkansal/wtfpython
    comment by IshKebab · 2025-06-27 · in Weird Expressions in Rust
  3. ▲ 2
    A list of funny and tricky JavaScript examples
    story by doener · 2025-05-09 · 0 comments
  4. …may not be the best example, but some other languages also exist and are both less "weird" than https://github.com/denysdovhan/wtfjs and fast (e.g. see http://luajit.org/ which is far less complex than V8).
  5. …return types that can make the kind of thorough testing required in spaceflight difficult. (See: https://github.com/denysdovhan/wtfjs ) It also has a reputation, like PHP, as being utilized by inexperienced programmers who write poorly…
  6. From 2010: https://news.ycombinator.com/item?id=1121932 https://github.com/denysdovhan/wtfjs My my, how HN sensibilities change over time. Hacker news, the place where the language police now rains supreme eh?
  7. …sometimes even better than the original explanations! https://whatdoesthiscodedo.com/g/cfa4c2c https://github.com/denysdovhan/wtfjs
  8. Perhaps this? https://github.com/denysdovhan/wtfjs
  9. ▲ 2
    A list of funny and tricky JavaScript examples
    story by ropacz · 2022-01-14 · 0 comments
  10. …and two empty string gives you a new empty string. [].toString() === '' [] + [] === '' + '' === '' https://github.com/denysdovhan/wtfjs#adding-arrays
    comment by abdusco · 2021-09-26 · in JSFuck (2012)
  11. ▲ 2
    A collection of tricky JavaScript examples
    story by graderjs · 2021-06-16 · 0 comments
  12. …of the built-in types have implicit conversions to other types; and many of which are non-obvious: https://github.com/denysdovhan/wtfjs
    comment by DaiPlusPlus · 2021-04-03 · in Spreadsheet is a software development paradigm
  13. https://github.com/denysdovhan/wtfjs
  14. …and unicase at random is a perfect example. The list of absurdities is beyond ridiculous[1]. [1] https://github.com/denysdovhan/wtfjs
    comment by axegon_ · 2020-12-22 · in Hotwire: HTML over the Wire
  15. ▲ 5
    What the Fuck JavaScript?
    story by elorant · 2020-11-15 · 0 comments
  16. …peace with the existence of those bugs and depend upon the well-known workaround" and he links to https://github.com/denysdovhan/wtfjs , a typical list of JavaScript's well-known type-casting quirks, etc. Pretty much all languages have…
  17. If you like this kind of thing, you might enjoy "WTF, JS?" https://github.com/denysdovhan/wtfjs Or it's slightly older brother "WTF, Python?" https://github.com/satwikkansal/wtfpython
  18. …is highly beneficial (and here's a good intro to those gotchas, including an accompanying video: https://github.com/denysdovhan/wtfjs ) Or better yet, work in one of the statically-typed compile-to-JS languages such as Typescript,…
  19. Maybe https://github.com/denysdovhan/wtfjs counts as leaky abstractions. It's definitely something that's difficult with building a language. Abstracting and generalizing your language parser can lead to amigious behavior.
    comment by CapsAdmin · 2019-05-14 · in The Law of Leaky Abstractions
  20. …('b' + 'a' + + 'a' + 'a') (Arch does not discriminate against apple or orange lovers) - You think https://github.com/denysdovhan/wtfjs is interesting, but looks nothing like your code Fullstack - https://angel.co/arch-4/jobs/375451-senior-f…
    comment by jtrigg · 2018-11-01 · in Ask HN: Who is hiring? (November 2018)
  21. …y.org.uk/page/javascript_the_weird_parts [2] https://hackernoon.com/js-wtf-with-math-79da9a941ec1 [3] https://github.com/denysdovhan/wtfjs
  22. …a "Master" I would think the knives would be less likely to come out. Things like this github has https://github.com/denysdovhan/wtfjs are on the mean spectrum to use against some so-called master, the meanest might probably be demanding…
  23. That is a fine JS editor you have got up there. we should create links for most of those w t f s here https://github.com/denysdovhan/wtfjs
  24. https://github.com/denysdovhan/wtfjs
    comment by nevir · 2017-08-31 · in What the f*ck python
  25. ▲ 1
    WTFJS: A list of funny and tricky examples of JavaScript
    story by thmslee · 2017-08-07 · 0 comments
  26. Reminds me of WTFJS: https://github.com/denysdovhan/wtfjs/blob/master/README.md
    comment by marksomnian · 2017-08-06 · in Python Oddities
  27. ▲ 72
    WTFJS – a list of funny and tricky JavaScript examples
    story by PleaseHelpMe · 2017-07-31 · 71 comments