How to find an element from the DOM in JavaScript

DOM
Last updated Mar 11, 2018
<div id="box"></div>

<div class="title"></div>
const box = document.querySelector("#box");

const title = document.querySelector(".title");