What Is a Map?

JavaScript objects hold structured data { key: "value" }. A limitation of this type of storage is that the keys have to be strings or symbols. Maps help with this limitation by allowing a key to be any type. Maps are iterable structures with certain commands that help use them efficiently. Try the examples in the video and please remember to open your Developer console.


Source: Close Brace, https://www.youtube.com/watch?v=XOIKgqK0JDg
Creative Commons License This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.

Last modified: Monday, August 21, 2023, 11:35 PM