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.
Sur cette page du site, vous pouvez voir la vidéo en ligne JavaScript Maps | JavaScript Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Techies Flock 23 September 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 72 fois et il a aimé 9 téléspectateurs. Bon visionnage!