Symmetry Group interview question

What is the difference between querySelector and querySelectorAll?

Interview Answer

Anonymous

Dec 1, 2024

The difference is that querySelector just selects 1 element and querySelectorAll selects all matching elements