how to change the color of a certain character using javascript code example Example: js element text color element.style.color = '#f0f';