hiow to change text color using javascript code example
Example 1: js element text color
element.style.color = '#f0f';
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";