[English] | [한국어]
"JavaScript is a language where common sense goes to die."
A curated collection of JavaScript's most unexpected behaviors, insane type coercion quirks, and language edge cases. This project is designed to help developers understand the "weird parts" of JS through interactive exploration.
JavaScript is famous for its quirks (e.g., [] == ![] being true). While these look like memes, they are rooted in the ECMAScript specification. This project aims to:
- Document "WTF" moments in JS.
- Explain the underlying logic behind these edge cases.
- Help developers avoid common pitfalls in production.
- Interactive Spoiler: Guess the output before revealing the answer.
- Multilingual Support: All cases are documented in both English and Korean.
- Data-Driven: Easily extensible via
cases.json.
We love new "king-bad" (annoying) JS snippets! If you know a weird behavior:
- Fork this repository.
- Add your case to
cases.json. - Open a Pull Request.
Please check CONTRIBUTING.md for detailed guidelines.
This project is licensed under the MIT License. Feel free to use, study, and share!
Maintained by @kangjung