← Back to challenges

Burglary Series (07): Make a Copy

JavaScriptHardobjects

Instructions

Your spouse wants a copy of the stolen items. Given an object containing the stolen items, return a copy of that list.

Examples

{ piano: 100, tv: 50 } ➞ { piano: 100, tv: 50 }

Notes

I'm having trouble coming up with clear examples for this challenge. If you have suggestions please leave a comment. Many thanks!

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Make My Way Home