get current class name es6 code example Example: javascript get class name document.getElementById("myDIV").className = "mystyle";