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

#7250
Zac Gordon
Keymaster

I think you may have just misspelled “content” 😉

You’ve got it though!

The one important thing to fix is that you want to define all variables up at the top at once rather than as you go.


var jon1, jon2, jon3;

Also, always try to use variable names that describe what they are storing. So this might be more appropriate:


var content, article, link;

Hope that helps and A+ for effort!!!

Cheers 🙂
Zac