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
20082026
-
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 -…
comment by maccard · 2026-08-14 · in an ambiguity in C89 which will never be fixed -
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 -
…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).
comment by karteum · 2024-12-26 · in Show HN: FixBrowser – a lightweight web browser created from scratch -
…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…
comment by weard_beard · 2024-09-26 · in How to avoid a BSOD on your 2B dollar spacecraft -
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?
comment by watchyoprofmity · 2023-08-27 · in WTFPython: Exploring and understanding Python through surprising snippets -
…sometimes even better than the original explanations! https://whatdoesthiscodedo.com/g/cfa4c2c https://github.com/denysdovhan/wtfjs
comment by julioc · 2023-03-15 · in Show HN: AI explanations for other people’s code -
Perhaps this? https://github.com/denysdovhan/wtfjs
comment by wishawa · 2022-07-10 · in Ask HN: Help me find this website that I should have bookmarked -
…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) -
…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 -
https://github.com/denysdovhan/wtfjs
comment by 8lall0 · 2021-02-11 · in I still can't understand why people hate JavaScript? -
…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 -
…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…
comment by axguscbklp · 2020-04-07 · in The JavaScript Black Hole: A playbook for ethical engineering on the web -
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
comment by olooney · 2019-08-16 · in Why is the result of ('b'+'a'+ + 'a' +'a').toLowerCase() 'banana'? -
…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,…
comment by jnbiche · 2019-06-24 · in I’m not really a good web developer, I'm just good at Googling things -
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 -
…('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) -
…y.org.uk/page/javascript_the_weird_parts [2] https://hackernoon.com/js-wtf-with-math-79da9a941ec1 [3] https://github.com/denysdovhan/wtfjs
comment by hpcjoe · 2018-10-28 · in What I Learned from porting my projects to FreeBSD -
…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…
comment by Jach · 2018-06-16 · in Ask HN: “Expert Level” JavaScript questions? -
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
comment by lozzo · 2017-10-07 · in Show HN: I come up with the concept of Selfie Program -
https://github.com/denysdovhan/wtfjs
comment by nevir · 2017-08-31 · in What the f*ck python -
Reminds me of WTFJS: https://github.com/denysdovhan/wtfjs/blob/master/README.md
comment by marksomnian · 2017-08-06 · in Python Oddities