Try It: Open Console (F12)
On any webpage, open DevTools Console and type:
document.querySelector('h1')
You'll see the first <h1> on the page highlighted.
Now try:
document.querySelector('h1').textContent
You just read from the DOM. Next: changing it.