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 trialKwazi Nolela
7,708 PointsWhat is wrong with my answer? document.querySelectorAll (".studentInfo");
I don't understand what is wrong with my answer?
const studentInfo = document.querySelectorAll (".studentInfo");
2 Answers
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsHi Kwazi,
Remove the space after querySelectorAll and fix the spelling for student-info.
Steven Parker
231,248 PointsThe only question I saw that would be close to this asks for "a reference to all elements in a document with the class student-info", but this code selects the class "studentInfo" instead.
You should also remove the space between the method name and the parentheses that enclose the argument. This would not be an issue in real code but it seems to confuse the quiz validator.
Kwazi Nolela
7,708 PointsThank you Steven really appericate i spent over an hour trying to figure this out. Thank you.
Kwazi Nolela
7,708 PointsKwazi Nolela
7,708 PointsThank you so much Dale.