# Mapping
Mapping is a key and value pair collection of elements, where you can get a value by its key.
# Syntax
mapping(key => value) <access specifier> <name>;
Where
- _KeyType − can be any built-in types plus bytes and string. No reference type or complex objects are allowed.
- _ValueType − can be any type.
← Interfaces Array →