js update style in the DOM code example
Example 1: add css in javascript
document.getElementById("demo").style.display = "none";
Example 2: change style js
// select element from DOM
const el = document.querySelector('.para')
// change css style
el.style.color = 'purple'