Javascript - add class

<span id="hello">Hello world</span>
document.getElementById("hello").classList.add("class_name");