+ 2
Javascript DOM support
Does solo learn not handle querySelectorAll()
5 Answers
+ 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
Hot today
Python — File Handling
2 Votes
Help me
0 Votes
Question is write a c program to print prime numbers up to n and print the largest number in array.
1 Votes
What’s wrong?
2 Votes
Achievements on Sololearn
1 Votes
Queue & dequeued
0 Votes