get object style javascript code example
Example: access css property using javascript
const element = document.querySelector('.element')
const style = getComputedStyle(element)
const element = document.querySelector('.element')
const style = getComputedStyle(element)