how to change the color of a classes in javascript code example
Example: javascript change color for class name
function reset() {
var elements = document.getElementsByClassName('pixel'); // get all elements
for(var i = 0; i < elements.length; i++){
elements[i].style.backgroundColor = "white";
}
}