Modern JavaScript Videos
About Lesson

In this lesson we want to learn about JavaScript Set & Map, In JavaScript Set and Map are two built in data structures that are introduced in ECMAScript 6 (ES6) for storing collections of data. Set is collection of unique values. Set object is similar to an array, but it can only contain unique values. when you add value to a Set that is already present, the set ignores the value. and Map is a collection of key value pairs. Map object allows any type of key including objects, and it maintains the insertion order of the keys.

 

 

Join the conversation