Changin styles dynamically

If we want to change the style of an element dynamically using javascript we use the .style property

If you want to change a CSS attribute that has more than world you need to write it in CamelCase
for example background-color turns into backgroundColor



Now try yourself

I can change color!




Page2 (classList) =>