closest
What you'll practice
- Use closest in an event handler to find the relevant DOM card from a nested button click and update card state
- This exercise keeps repeated card components independent
Unlock full access
Choose a plan and go straight to secure checkout.
- All 600+ interactive exercises
- Full course curriculum
- Access to guided projects
- All future content included
Secure checkout with Stripe. Cancel anytime.