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 and the DOM (Retiring) Getting a Handle on the DOM DOM Selection - More Review

student-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.

That 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.

2 Answers

Steven Parker
Steven Parker
231,236 Points

Your 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”:point_left: "curly" quotes

".student-info" :point_left: normal quotes

It's important to use the normal quotes for programming (and quizzes).

Yeah “ 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.

I remember reading this and it may apply to you - fancy quotes not accepted by quiz