modify style from dom code example
Example 1: how to change css using javascript
document.getElementById("myText").className = "anyNewClass"
Example 2: change style js
// select element from DOM
const el = document.querySelector('.para')
// change css style
el.style.color = 'purple'