DOM access from JavaScript

With JavaScript, you can: Access, modify, naviguate through DOM elements
HTML
<h1> My Title </h1>

<p>
  Hello <em>world</em> <strong>!</strong>
  </p><div class="links">
    <a href="https://google.com">A 
      <strong>link</strong> </a>
  </div>
<p></p>
JS
const element = document.querySelector("h1");

console.log(element.textContent);
Display on the console:
> My Title