Dot Notation

Dot Notation

  • Dot notation allows us to access properties with a .

Example

const superHero = {
  'secret identity': 'Peter Parker',
  name: 'Spiderman',
  powers: ['super strength', 'hyper awareness', 'agility', 'genius intellect'],
  age: 17
}

console.log(superHero.name)
console.log(superHero.powers)

JS Bin on jsbin.com