How to show element in JavaScript

DOM
Last updated Mar 11, 2018
<div id="box"></div>
#box {
  display: none;
}
const element = document.querySelector("#box");

element.style.display = "block";