Changing Styles Dynamically
Which color format is most appropriate for dynamic color manipulation?
element.style.backgroundColor = '#ff0000';
element.style.backgroundColor = 'rgb(255, 0, 0)';
element.style.backgroundColor = 'red';
element.style.backgroundColor = '#ff0000';
element.style.backgroundColor = 'rgb(255, 0, 0)';
element.style.backgroundColor = 'red';