Modifying styles and elements value in JavaScript.

On the bootcamp, the subjects that i covered are: modifying styles and elements value in Javascript.

To do that, there are two properties usually used called .className and .classList. A specified class can be changed in different ways. Here are some clarifications. The .className property can set or return the value of the specified element’s class attribute. . To set the .className property : HTMLElementObject.className = class . To return the .className property : HTMLElementObject.className The .classList property is a read-only property which returns the class name(s) of an element as a object. This method also includes other methods like: add (class1, class2, ...), remove (class1, class2, ...).

Tomorrow, i will continue by how to create elements in Javascript.

The intermediate typing lessons are almost coming to an end, tomorrow I can finish them. Similar case for one of the english courses that i follow on udemy.