change style java script code example
Example: change style js
// select element from DOM
const el = document.querySelector('.para')
// change css style
el.style.color = 'purple'
// select element from DOM
const el = document.querySelector('.para')
// change css style
el.style.color = 'purple'