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 JavaScript Loops, Arrays and Objects Tracking Data Using Objects Review Object Basics

help

i'm lost

alex gwartney
alex gwartney
8,849 Points

Could you let us know what you are specifically lost with so we can help you out?

alert( student ); yea sorry

alert( student ); yea sorry

alex gwartney
alex gwartney
8,849 Points

can you post the full code that you have because the alert is fine it looks like you are trying to alert a string variable? Once i see the full code i will be able to figure the rest out thanks.

Complete the code below to open an alert that displays the value of the grade property of the student object: alert( student_________________);

alex gwartney
alex gwartney
8,849 Points

so with out going to the quiz it self which not to be a pain but if you could link me to that it would be great but it looks like you need to put a grade variable that seems like it stores a string.

alex gwartney
alex gwartney
8,849 Points

Also i awnserd your other question your created check it out to finish the quiz

2 Answers

Darren Joy
Darren Joy
19,573 Points

from: http://teamtreehouse.com/library/javascript-loops-arrays-and-objects/tracking-data-using-objects/review-object-basics

the section is on objects. so it's asking for an object format that will pull the info as required

"Complete the code below to open an alert that displays the value of the grade property of the student object: alert( student _________);"

I would guess it's something like student.grade

Yup, the blank part is just ".grade" since student is already in the alert() statement.

alex gwartney
alex gwartney
8,849 Points

Ok thank you for doing that so for the student one its alert( student.grade); What its doing is accessing the variable inside the student object Hopefully this makes sense but this will now pass you for that part of the quiz.

Darren Joy
Darren Joy
19,573 Points

Think of it more as a property of the object

the object is student, the property is grade, and inside the object the grade is set to 'something' (let's say 90%)

by calling for student.grade it will return 90