By the end of this video you will be able to :
1. Delete an entry in the Map
2. Clearing the Entire Map
3. Checking if a certain Value is present using the KEY
4. Understanding the Entries Method
5. Calculating the size of the MAP
The delete() method removes the specified element from a Map object by key
The key of the element to remove from the Map object.
true if an element in the Map object existed and has been removed, or false if the element does not exist.
The clear() method removes all elements from a Map object.
The entries() method returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order.
Return value
Section
A new Map iterator object
The has() method returns a boolean indicating whether an element with the specified key exists or not.
The key of the element to test for presence in the Map object.
Return value
Section
true if an element with the specified key exists in the Map object; otherwise false.
#Delete() #Entries #has()
16.Map Methods-Deleting a Key delete()-Clearing a Map clear()-has()-Entries()- size property