Skip to content

A curated collection of JavaScript's unexpected behaviors, type coercion quirks, and language edge cases.

License

Notifications You must be signed in to change notification settings

kangjung/js-edge-cases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧩 JS Edge Cases Explorer

[English] | [한국어]

License: MIT PRs Welcome

"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.

👉 Live Demo: Visit the Museum


🧐 Why This Project?

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.

🚀 Key Features

  • 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.

🛠 How to Contribute

We love new "king-bad" (annoying) JS snippets! If you know a weird behavior:

  1. Fork this repository.
  2. Add your case to cases.json.
  3. Open a Pull Request.

Please check CONTRIBUTING.md for detailed guidelines.

📜 License

This project is licensed under the MIT License. Feel free to use, study, and share!


Maintained by @kangjung

About

A curated collection of JavaScript's unexpected behaviors, type coercion quirks, and language edge cases.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages