+ 2
Javascript DOM support
Does solo learn not handle querySelectorAll()
5 Antworten
+ 9
That is happening because you have to handle onload of window.
Sololearn by default embed JavaScript in head section, so you have to handle it first.
Like so,
window.onload = () => {
let li = document.querySelectorAll("li");
console.log(li.length);
}
+ 6
I just checked.
Sololearn definitely handles querySelectorAll().
+ 2
https://code.sololearn.com/W6ueOBIIm1so/?ref=app
+ 1
Can you share the code that raised this doubt, so people can check the problem. I think querySelectorAll is supported