# Map: looking up values by a key [Syntax and values](README.md) A map connects keys with values. For example, a player can have a name key and a score key. You choose a key instead of a numbered position. ```text let player = { "name": "Pip", "score": 0, 1: "first", true: "enabled", } ``` Map keys may be `Number`, `Text`, or `Boolean`. Values may have any type. Maps preserve source insertion order for deterministic display. If a literal repeats an equal key, the later value replaces the earlier value at its original position. ```text say player["name"] set player["score"] = 10 ``` The key must exist for both reading and assignment. Assignment does not insert a missing key. ## Related entries [Syntax and values](README.md) · [Built-ins](../builtins/README.md) · [Programming guides](../guides/README.md)