How to find element by class in JavaScript

DOM
Last updated Mar 11, 2018
<div class="box"></div>
const element = document.querySelector(".box");