
About JS Equality Game
You're handed a grid of JavaScript values — null, 0, "", false, undefined — and your job is to mark every cell where the == operator returns true. Each click is a guess, and the table keeps score. It sounds simple until the coercions start surprising you.
The == operator is one of JavaScript's most misunderstood features, and this game turns the confusion into something productive. Rather than reading a spec table passively, you build a mental model by getting things wrong and correcting them. Developers who thought they had it figured out routinely discover gaps. Find it alongside other hands-on tools in education.
It runs entirely in the browser with no setup — just click cells and check your answers. A mouse or trackpad is all you need; it works fine on a single screen in a spare five minutes.
How to use
• **Objective**: Predict whether JavaScript value pairs will be equal using the == operator (loose equality) • **How to play**: Click on grid cells to mark your predictions - green for "equal" (true), red for "not equal" (false) • **Controls**: Use mouse clicks to select cells, or use keyboard navigation with arrow keys and spacebar to toggle selections • **Scoring**: The game tests your knowledge of JavaScript's type coercion rules - you'll be surprised by some results! • **Key insight**: This demonstrates why === (strict equality) is often preferred over == in JavaScript • **Grid layout**: Values are shown on both axes - predict if the row value equals the column value using == • **Challenge**: Even experienced developers often struggle with these comparisons due to JavaScript's complex implicit type conversion rules
Reviews
No written reviews yet. Be the first!
More from Education

A geography speed-quiz. Type country names against the clock — every one you nail lights up the map. Eight maps (world + every continent), three paces, leaderboards, percentile standings, and a per-answer rarity stat that shows how many other players named each country.
by geodude






