Map holds key-value pairs. It’s similar to an array but we can define our own index. And indexes are unique in maps.
Example:
Other interesting features of Maps are all indexes are unique. And we can use any value as key or value
Or
In the above example, map.keys() returns the keys of the map but it returns it in Iterator object. It means that it can’t be displayed as it is. It should be displayed only by iterating
And More:
Or