How to remove class from element in JavaScript

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

element.classList.remove("class-name");