Changing Styles Dynamically
Why should you parse computed style values before using them in calculations?
const styles = window.getComputedStyle(element);
const zIndex = parseInt(styles.zIndex, 10);
const styles = window.getComputedStyle(element);
const zIndex = parseInt(styles.zIndex, 10);