new Map([x])
// "x" represents iterable elements stored as key:value pairs
// When "x" is not specified, the Map starts out empty
const user = new Map([
['First Name', 'Divine'],
['Last Name', 'Orji'],
['Age', 24],
[false, 'Dance'],
]);
console.log(user);
/*
Map(4) {
'First Name' => 'Divine',
'Last Name' => 'Orji',
'Age' => 24,
false => 'Dance'
}
*/
fruits.get("apples"); // Returns 500