Maps were added as a data structure to JavaScript in the ES2015 update. In JavaScript, a map is a collection of key-value pairs. Maps are also known as dictionaries, hashmaps, and associative arrays ...