Skip to content

Instantly share code, notes, and snippets.

@acidtone
Last active March 23, 2021 14:20
Show Gist options
  • Save acidtone/ef75f5e77a8bb74f8fe5981b2f8ac8bc to your computer and use it in GitHub Desktop.
Save acidtone/ef75f5e77a8bb74f8fe5981b2f8ac8bc to your computer and use it in GitHub Desktop.
Object Terminology

Object Terminology

Javascript object : A collection of name/value pairs.

Array literal : A comma separated list of key:value pairs surrounded by {}. For example, a user object: {name: "John Wick", indestructible: true}. Note: a value can also be another object (nested object).

Object property : A fancy term for an object's key:value pair where the value is not a function.

Object method : A fancy term for an object's key:value pair where the value is a function.

Object property name : The key in a key:value pair where the key is a string.

Object property value : The (you guessed it) value in a key:value pair where value can be any valid Javascript value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment