JavaScript Maps | JavaScript Tutorial

Published: 23 September 2022
on channel: Techies Flock
72
9

Map:- Map is a collection of keyed data items, just like an Object.
Methods and properties are:
new Map() – creates the map.
map.set(key, value) – stores the value by the key.
map.get(key) – returns the value by the key, undefined if key doesn’t exist in map.
map.has(key) – returns true if the key exists, false otherwise.
map.delete(key) – removes the value by the key.
map.clear() – removes everything from the map.
map.size – returns the current element count.


On this page of the site you can watch the video online JavaScript Maps | JavaScript Tutorial with a duration of hours minute second in good quality, which was uploaded by the user Techies Flock 23 September 2022, share the link with friends and acquaintances, this video has already been watched 72 times on youtube and it was liked by 9 viewers. Enjoy your viewing!