Using a dot to find a named value

Syntax and values

A dot can select a named value, such as the score in a player map. It can also select an exported name from an imported module.

For an identifier-shaped text key, member access is exact map-key shorthand:

player.score
set player.score = 10

These are equivalent to:

player["score"]
set player["score"] = 10

Member names are case-sensitive user data. They are never translated. Member
access does not expose host objects, methods, or properties on other value
types.

Syntax and values · Built-ins · Programming guides