Introduction A Map is a collection of elements, where each element is stored as a key: value pair. By this definition, it can seem similar to an Object, but while a Map can accept any data type (both primitive values and objects) as its key, an Objec...

Markdown supported · ⌘↵ to post
As a constant learner I never miss an opportunity to increase my knowledge. Your article helped me expand my experience and be better prepared for future problem solving.
Ridwan Olanrewaju
React Developer
Excellent article. I should mention though, that an Object can have a
numberas a property key.For Example:
const x = { 7: "tight" } // undefined x[7] // 'tight'