Accessing Object Properties III


#1
let person = {
  name: 'Tyron',
  age: 40
  weekendAlarm: 'No alarms needed',
  weekAlarm: 'Alarm set to 7AM',
};

console.log(person['name']);
console.log(person['age']);

Can someone help me understand what wrong?


#2

what is the error message you get? What is the exercise you are at? Please share exercise url, the forum categories do not always match the categories of the lessons


#3

https://www.codecademy.com/courses/learn-javascript-objects/lessons/objects/exercises/object-property-access-iii?action=resume_content_item&course_redirect=introduction-to-javascript


#4

property value pairs are separated by comma’s, you missed a comma somewhere

always check the line above the error message line as well


#5

Thank you so much:))


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.