how to add a css property using javascript code example
Example 1: access css property using javascript
const element = document.querySelector('.element')
const style = getComputedStyle(element)
Example 2: add css in javascript
document.getElementById("demo").style.display = "none";