David Castro2,340 Points
How did he use listdiv.querySelector? list div isnt even the class on the element, the class is "list
Th entire time we were taught to use document.querySelector its weird that he used it this way with no explanation.
Steven Parker173,991 Points
You didn't show the code, so I'm guessing you are talking about this line:
const listUl = listDiv.querySelector("ul");
And here, "listDiv" is an element that was previously identified in the code, and this line uses it as the starting point in the DOM to find the first "ul" element inside it.