Javascript Basic 13 new Map()

Published: 25 July 2022
on channel: viRan Code
8
0

JavaScript Maps
A Map holds key-value pairs where the keys can be any datatype.
A Map remembers the original insertion order of the keys.

Method Description

new Map() Creates a new Map
set() Sets the value for a key in a Map
get() Gets the value for a key in a Map
delete() Removes a Map element specified by the key
has() Returns true if a key exists in a Map
entries() Returns an iterator with the [key, value] pairs in a Map

Property Description

size Returns the number of elements in a Map


On this page of the site you can watch the video online Javascript Basic 13 new Map() with a duration of hours minute second in good quality, which was uploaded by the user viRan Code 25 July 2022, share the link with friends and acquaintances, this video has already been watched 8 times on youtube and it was liked by 0 viewers. Enjoy your viewing!