how to color in javascript code example
Example 1: javascript change color
var span = document.getElementsByTagName("span")[0];
span.style.color = "red";
Example 2: how to change color on js
document.getElementBiId("your id").style.color = "your color";
//it can also be used as:
document.body.style.backgroundColor = "your color";