Maps

Learn how to use maps, find values using keys, and add new elements to maps.

Key-value mapping

We use maps to keep associations from keys to their values. For instance:

  • From user ID to an object representing the user

  • From a website to its IP address

  • From a configuration name to data stored in this configuration

Get hands-on with 1200+ tech skills courses.