JavaScript Object Maps

You can create a JavaScript Map by Passing an Array to new Map() and he set() method can be used to set value to map.

Code :