51. JavaScript WeakMap - Why WeakMap? What's the difference among Object, Map and WeakMap? and More

Опубликовано: 23 Май 2026
на канале: Miss Xing (邢老师)
246
10

#MissXing #JavaScript #javascriptdatatype
In this video, I explained why JavaScript introduced WeakMap even though Map already exists.
Also explained why keys must be object, cannot be primitive values, why doesn't have a way to loop WeakMap.

Source code:
https://github.com/TinaXing2012/javas...