How to work with style in javascript

For those of us who have been working with web pages for some time, we are always faced with the problem that in some cases we need the user to change certain elements on the site, such as colors, inputs and even images. So, with the help of javascript we can now allow our users to make these changes. See some examples below: ```js let myDiv = document.getElementById("myDiv"); // set the background color = "red"; // change the dimensions = "100px"; = "200px"; // assign a border = "1px solid black"; ``` you can apply the event property to a button so that as soon as the user clicks, the changes are all applied.Heres another example ```js let prop, value, i, len; for(i =0, len=; i < len; i++) { prop =[i]; // alterbately, value = console.log("prop: ${value}"); } ``` for more examples like this visit our chat and there well talk more about javascript ­čĹë [javascript chatroom](

All comments