Changing Styles Dynamically
Which syntax is correct for setting CSS properties in JavaScript?
element.style.backgroundColor = 'blue';
element.style['background-color'] = 'blue';
element.style.backgroundColor = 'blue';
element.style['background-color'] = 'blue';