Javascript DOM support | Sololearn: Learn to code for FREE!

+2

Javascript DOM support

Does solo learn not handle querySelectorAll()

12/2/2019 3:38:47 AM

Deleted

5 Answers

New Answer

+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/WiOErXUWAFLD/?ref=app

+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