dev
Quizzes
Quizzes
Leaderboard
Submit a question
Add
JavaScript quiz
· 53 questions
Object access
All questions
Read the code
Given the person object, what is the correct way to access the values?
const person = {name:"John", age:31, city:"New York"};
1
–
3
answer
←
previous
Question
35
of 53
64%
A
person.name
B
person["name"]
C
both are correct
←
Previous
Next question
→