Ken Okiebisu9,673 Points
document.querySelectorAll on classes(Question from quiz)
The question asked my how I would assign all elements with the class ‘student-info’ into the constant studentInfo using the querySelectorAll method. I wrote it as the following:
const studentInfo= document.querySelectorAll(‘.student-info’);
I keey getting it wrong and I don’t know why. I would like to know what is wrong with my code. Thanks.
Emmanuel C7,534 Points