Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anthonycoffey/64a6e0c329a2c44ba0ec59076d614efe to your computer and use it in GitHub Desktop.
Save anthonycoffey/64a6e0c329a2c44ba0ec59076d614efe to your computer and use it in GitHub Desktop.
Javascript Object Property Accessors
const obj = { a: 1, b: 4}
// dot operator
obj.a // 1
// bracket notation
obj['b'] // 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment