How to change CSS property in JavaScript

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

//change background-color
element.style.backgroundColor = "red";