Object dot notation

PHOTO EMBED

Tue Jun 28 2022 18:50:12 GMT+0000 (Coordinated Universal Time)

Saved by @cruz #javascript

let spaceship = {
  homePlanet: 'Earth',
  color: 'silver',
  'Fuel Type': 'Turbo Fuel',
  numCrew: 5,
  flightPath: ['Venus', 'Mars', 'Saturn']
};

// Write your code below

let crewCount = spaceship.numCrew;

let planetArray = spaceship.flightPath;
content_copyCOPY

https://www.codecademy.com/courses/introduction-to-javascript/lessons/objects/exercises/object-property-access