JavaScript for WordPress Forums Vanilla JavaScript 1.3.05 Missing how to play with these in the console Reply To: 1.3.05 Missing how to play with these in the console

#14452
Zac Gordon
Keymaster

Hi @Gillian!

I put together a little video here showing how you can set vars in the console. In this example I’m setting a variable based on an element in the DOM. You can pretty much do anything we do in these exercises in the console as well. [Sorry no sound]

Let me know if this doesn’t answer your question.

In terms of the actual suggestion for practice, I would say try to do some of the same things we do in the video, but just with different sites and types of DOM elements. Notice in this example we have a div with class of content but you will need to match classes, ids or other elements for other sites.

Hope that helps!

Zac