Premium
Implement Array.prototype.map
Challenge summary
Recreate JavaScript array mapping with native-style callback context, sparse-array behavior, and length semantics.
What you'll practice
- Invoke the callback only for array indexes that exist.
- Preserve source length and holes in the returned array.
- Ignore elements appended after iteration begins.
What Premium unlocks
Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.
Free related practice
Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.