add style js without overwrite code example
Example: add style js without overwrite
// Bad
element.setAttribute("style", "background-color: red;");
// Good
element.style.backgroundColor = "red";
// Bad
element.setAttribute("style", "background-color: red;");
// Good
element.style.backgroundColor = "red";