1const heightOutput = document.querySelector('#height');
2const widthOutput = document.querySelector('#width');
3
4function reportWindowSize() {
5 heightOutput.textContent = window.innerHeight;
6 widthOutput.textContent = window.innerWidth;
7}
8
9window.onresize = reportWindowSize;