Intermediate
Stop the click
A crate stands in front of a wall, and both count clicks in window.hits. A click in the middle of the canvas should reach only the crate. Fix it.
What Check tests
- A click in the middle reaches the crate
- It does not reach the wall behind it
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.