Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
JavaScript
/
Map and Set
A Map may explicitly store undefined. Which check distinguishes that entry from an absent…
from Map and Set
Node 24
beginner
1 min
A Map may explicitly store undefined. Which check distinguishes that entry from an absent key?
Call map.has(key).
Check Boolean(map.get(key)).
Compare map.get(key) with undefined.
Use map.get(key) || undefined.
Check
Ask AI about this kata
Report an error
previous kata
Which requirement makes WeakMap the wrong cache structure?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload