A JavaScript Map is an object that holds key:value pairs (where the keys can be any datatype ) and remembers the original insertion order of the keys . You can create a map two ways:
JavaScript has a number of built in Map instance methods (you can find them all at MDN Web Docs ). Some basic map methods are listed below:
You can find more tutorials and examples for each method at w3schools .