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 trialDaniel Clarke
17,378 Pointsstudent-info not accepting my answer but I’m sure it is the correct one
I’m typing in document.querySelectorAll(“.student-info”); and i’m sure this is the correct answer but it is saying it is incorrect with no further explanation. I’ve checked the video a dozen times and MDN. Unlike the other quiz’s this one seems requires all four answers to be correct to pass. I’m working on an iPad and have a screen capture of me putting in the answer and getting the message, which I can supply if needed. If I’m wrong I apologise.
2 Answers
Steven Parker
231,270 PointsYour code has word-processor style ("curly") quotes instead of normal programmer's quotes. Here's examples of both in a larger font to make them easier to see:
“.student-info”
"curly" quotes
".student-info"
normal quotes
It's important to use the normal quotes for programming (and quizzes).
Daniel Clarke
17,378 PointsYeah “ looks like a default for iPads, if I hold down on the same key there’s plenty of quote options : “ ” " „ Same goes with single quotes ‘ ' ’ `. Good to know moving forward. It’s a miracle I’ve got this far on the Beginning JavaScript track and not run in to it earlier.
KRIS NIKOLAISEN
54,971 PointsI remember reading this and it may apply to you - fancy quotes not accepted by quiz
KRIS NIKOLAISEN
54,971 PointsKRIS NIKOLAISEN
54,971 PointsThat is the correct answer unless you are including the semicolon. I typed the following and it passed
document.querySelectorAll(".student-info")
but copy/pasted what you have and it didn't. Strange.