Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Object-Oriented JavaScript Object Basics Reviewing Object Basics

Im not quite sure how I am missing the value.

It ask to log the console that represents value of author. I thought the value was Williams Shakespeare?

2 Answers

const book = { title: 'Romeo and Juliet', author: 'William Shakespeare', rating: 3.74, genres: ['Classics', 'Plays', 'Fiction', 'Romance'] }

//Log the value of the author property to the console console.log(book);

Its the console.log code Im messing up somewhere on that line.

Steven Parker
Steven Parker
231,248 Points

"book" is the object. You still need to specify the property name.

Steven Parker
Steven Parker
231,248 Points

That's the value, but your task is not to replicate the contents. You should refer to the object property directly.

I thought I was doing that by using author but I'm not right on that one either.

Steven Parker
Steven Parker
231,248 Points

I'm not sure what you mean. Please show the actual code you are using.