javascript-interview-questions
javascript-interview-questions copied to clipboard
Answer 8
Answer 8, point V,
An Object has a prototype, so there are default keys in the map that could collide with your keys if you're not careful. As of ES5 this can be bypassed by using map = Object.create(null), but this is seldom done.
I believe you meant object instead of map there?
Yes. The answer seems to be a bit confusing.
It has been fixed. Thank you