const appBarElement = document.querySelector('.appBar'); if (appBarElement) { const style = window.getComputedStyle(appBarElement); const position = style.getPropertyValue('position'); console.log(position); }