Weak maps in JavaScript - Basic JavaScript Fast (34)

preview_player
Показать описание
In a weak map of JavaScript, when the key in object form is deleted outside the weak map, both the key and the corresponding value is also deleted in the weak map. Therefore, a weak map can save memory that an ordinary map cannot. In ordinary maps, both the key and value are still retained in the ordinary map when the key in object form is already deleted outside the map.

Playlist of my JavaScript course

Playlist of my HTML5 and CSS3 tutorials

Playlist of my algorithm walkthrough

Playlist of my Java course

Playlist of my Java examples

#javascripttutorial #javascriptfullcourse #begincodingfast #javascript #javascriptweakmaps
Рекомендации по теме
Комментарии
Автор

Finally understand what weakmaps is all about! Thanks for the tutorial. If you could explain when it is better to use normal maps above weakmaps it would be appreciated. You shouldn't be shy to use keyboard shortcuts if you know them. It saves time and adds cool points lol

mervinmarias