Question · JavaScript and TypeScript course · Module 5: Advanced JavaScript

Advanced Object Property Access

Which of the following ways to access an object property are valid?

Answer options

  • raptor["name"]
  • Options 1 and 3 are correct
  • raptor.name
  • raptor->name

You can check the correct answer by solving this task in the CodeWorlds game.