What's the correct answer?
How would you use querySelectorAll to obtain a reference to all elements in a document with the class student-info and assign it to the constant studentInfo?
const studentInfo = _________
Why it's impossible to see a correct answer when I don't know it?
Jason MillerFront End Web Development Techdegree Graduate 22,570 Points
document.querySelectorAll() uses type and/or css selectors to select elements on a webpage. So the answer for this question would be:
const studentInfo = document.querySelectorAll(".student-info");
Joseph YhuPHP Development Techdegree Graduate 46,902 Points
Do you know how to use
querySelector() to select a class? It's the same thing, except it's
querySelectorAll() instead of just