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