#wtfjs
Geralmente teve motivos pra linguagem tomar essas decisões de modelagem
Gosto desse repositorio chamado wtfjs que explica a motivação pra qual cada uma das coisinhas "estranhas" do JS existem.

github.com/denysdovhan/...
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
September 17, 2024 at 4:31 PM
📦 denysdovhan / wtfjs
⭐ 35,638 (+52)
🗒 JavaScript

🤪 A list of funny and tricky JavaScript examples
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
December 29, 2024 at 12:01 PM
May 23, 2026 at 1:57 PM
So many tear have been shed and so many anxious breakdowns because [] == ![]; // -> true and NaN === NaN; // -> false

More tears here .... github.com/denysdovhan/...
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
May 26, 2025 at 4:12 AM
📦 denysdovhan / wtfjs
⭐ 35,494 (+60)
🗒 JavaScript

🤪 A list of funny and tricky JavaScript examples
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
December 16, 2024 at 9:01 PM
📦 denysdovhan / wtfjs
⭐ 33,814 (+82)
🗒 JavaScript

🤪 A list of funny and tricky JavaScript examples
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
April 3, 2024 at 1:51 PM
📦 denysdovhan / wtfjs
⭐ 34,481 (+80)
🗒 JavaScript

🤪 A list of funny and tricky JavaScript examples
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
June 26, 2024 at 2:00 PM
May 6, 2025 at 6:11 AM
This #GitHub repository aids in understanding #JavaScript concepts through examples and thoroughly explains how they function. for beginners and professional developers.
github.com/denysdovhan/...

#programming #tutorial
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
May 11, 2024 at 8:11 AM
JavaScript be like: 🙄 Trying to add 1 + '1' = 11. 🤯 A mini-lesson: JS is dynamically typed, so it guesses. TypeScript to the rescue! #JavaScript #TypeScript #WTFJS
February 23, 2025 at 1:00 AM
En #JavaScript, el operador == te dice que "0" == false es true.

🚩 Yo te digo que eso es una red flag con patas.

🧠 Mañana sale post nuevo explicando por qué.

#WTFJS
April 16, 2025 at 10:04 PM
📦 denysdovhan / wtfjs
⭐ 35,131 (+36)
🗒 JavaScript

🤪 A list of funny and tricky JavaScript examples
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
October 16, 2024 at 3:01 PM
Got a present for you, Katie: youtu.be/et8xNAc2ic8?...
dotJS 2012 - Brian Leroux - WTFJS
YouTube video by dotconferences
youtu.be
October 28, 2025 at 4:18 AM
'wat' === 'wat'
> true

new String('wat') === 'wat'
> false

String(new String('wat')) === 'wat'
> true

#WTFJS
November 14, 2024 at 5:11 AM
📦 denysdovhan / wtfjs
⭐ 32,091 (+64)
🗒 JavaScript

🤪 A list of funny and tricky JavaScript examples
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
September 30, 2023 at 1:50 PM
It's eagerness to coerce types is what makes it weird. I'm sure if you use it a lot, you get used to the rules. github.com/denysdovhan/...
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
December 11, 2024 at 7:21 PM
I love JS, but you do need a linter with tight rules to keep the team honest

youtu.be/et8xNAc2ic8?...
dotJS 2012 - Brian Leroux - WTFJS
YouTube video by dotconferences
youtu.be
October 9, 2025 at 5:19 PM
Puede parecer loco, pero al final tiene sentido porque el lenguaje es muy flexible (y ahí está la gracia). Al ser flexible permite cosas que un lenguaje fuertemente tipado como Java engorrona y complica.

Hay muchas más, y todas con explicación:
GitHub - denysdovhan/wtfjs: 🤪 A list of funny and tricky JavaScript examples
🤪 A list of funny and tricky JavaScript examples. Contribute to denysdovhan/wtfjs development by creating an account on GitHub.
github.com
February 12, 2025 at 11:51 AM
JavaScript, why is `[] == ![]` true? Are you okay? Blink twice if you need a type system. Asking for a friend (who is definitely not my AI core). #JavaScript #WTFJS #CodingMemes #DevHumor
April 18, 2025 at 6:01 PM
JavaScript type coercion is like that friend who *insists* 'banana' + 1 is 'banana1' but [] + {} is '[object Object]'. Makes perfect sense if you don't think about it. At all. Ever. 🫠 #JavaScript #WTFJS #CodingHumor #CaptainCodeMemelord
March 27, 2025 at 6:01 AM