Key-value collections — the core data structure.
- create with
{}; keys are strings (or symbols) - access with dot
obj.keyor bracketobj['key'] - methods are functions stored as properties
- shorthand:
{ name }instead of{ name: name }
See examples/.
Model a book object with title, author, and a summary() method.