Map, Set or Object
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
You're tracking which users are online, counting visits per page, and attaching extra data to DOM elements without leaking memory. Explain when you'd use a plain object, a Map, a Set or a WeakMap for each, and why.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.