how to change color of font in js

JavaScript
element.style.color = '#f0f';
Source

Also in JavaScript: