Properties of Dictionaries
- Objects cannot have duplicate keys. That is, two keys of the same name in the same object will generate an error.
- Values assigned to keys in an object can be of any data type (as shown in the examples in the previous section).
- JavaScript only allows strings to be the keys in an object. No other data type is allowed.