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


Javascript DOM support

Does solo learn not handle querySelectorAll()

12/2/2019 3:38:47 AM


5 Answers

New Answer


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); }


I just checked. Sololearn definitely handles querySelectorAll().




Can you share the code that raised this doubt, so people can check the problem. I think querySelectorAll is supported