How to find next element in JavaScript

DOM
Last updated Mar 11, 2018
<div id="box1"></div>
<div id="box2"></div>
const box1 = document.querySelector("#box1");
const box2 = box1.nextElementSibling;