xxxxxxxxxx
// Adds a new key: value entry to your Map.
const user = new Map([
['First Name', 'Divine'],
['Last Name', 'Orji'],
['Age', 24],
[false, 'Dance'],
]);
user.set('Pet', 'Gary');
console.log(user);
/*
Map(5) {
'First Name' => 'Divine',
'Last Name' => 'Orji',
'Age' => 24,
false => 'Dance',
'Pet' => 'Gary'
}
*/