Document.querySelector vs. document.getElement | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 11

Document.querySelector vs. document.getElement

When is it best to use one or the other ?

9th Apr 2019, 2:02 PM
Kae🙌🏽☕️
Kae🙌🏽☕️ - avatar
1 Answer
+ 5
Recent researches by sololearners here have proved that getElement.... are more faster that the querySelector. So try to use that more!
9th Apr 2019, 2:13 PM
Seniru
Seniru - avatar