JavaScript for WordPress Forums Vanilla JavaScript why use query selector Reply To: why use query selector

Zac Gordon

Hey Jonathan!

First: Great job and I’m proud of you for giving this a stab 🙂 As the teacher I appreciate the effort you put in!

So.. with that said, check out this solution:,output

Third: To make sure you really get it, try figuring out this similar example on your own:,js,output

Let me know how it goes! This should help begin to solidify the benefit of querySelector.