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

RODRIGO MARTINEZ
RODRIGO MARTINEZ
5,912 Points

Cant'find the right answer. What i am doing wrong? Here goes my code:

Cant'find the right answer. What i am doing wrong? Here goes my code:

const studentinfo = document.querySelectorAll("#student-info");

2 Answers

student-info is a class so you will want to precede it with a period.

document.querySelectorAll(".student-info")

Honestly these test are very frustrating because they are very particular on the test question it took me 20 min of wasted time just because the code I was putting ended with " ; ". Which during the whole course was appropriate but for the quiz it wasn't. Most of my time goes to these quizzes and trying to figure it out because I want to make sure I'm coding correctly but it seems whats being taught is not consistent with the quizzes.

RODRIGO MARTINEZ
RODRIGO MARTINEZ
5,912 Points

IT worked perfectly. Thanks a lot.