javascript-interview-questions icon indicating copy to clipboard operation
javascript-interview-questions copied to clipboard

Answer 8

Open ChinmayaBisoi opened this issue 2 years ago • 1 comments

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?

ChinmayaBisoi avatar Oct 22 '23 08:10 ChinmayaBisoi

Yes. The answer seems to be a bit confusing.

mrAJAY1 avatar Dec 15 '23 19:12 mrAJAY1

It has been fixed. Thank you

sudheerj avatar Feb 24 '24 14:02 sudheerj