Changing Styles Dynamically
Which method is used to retrieve a specific computed style property?
const styles = window.getComputedStyle(element);
console.log(styles.getPropertyValue('background-color'));
const styles = window.getComputedStyle(element);
console.log(styles.getPropertyValue('background-color'));