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 trialanthony woods
8,208 Pointshelp
i'm lost
anthony woods
8,208 Pointsalert( student ); yea sorry
anthony woods
8,208 Pointsalert( student ); yea sorry
alex gwartney
8,849 Pointscan 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.
anthony woods
8,208 PointsComplete the code below to open an alert that displays the value of the grade property of the student object: alert( student_________________);
alex gwartney
8,849 Pointsso 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
8,849 PointsAlso i awnserd your other question your created check it out to finish the quiz
2 Answers
Darren Joy
19,573 Pointsthe 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
Marcus Parsons
15,719 PointsYup, the blank part is just ".grade" since student is already in the alert()
statement.
alex gwartney
8,849 PointsOk 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
19,573 PointsThink 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
alex gwartney
8,849 Pointsalex gwartney
8,849 PointsCould you let us know what you are specifically lost with so we can help you out?