프로그래밍자바스크립트현재 화면의 가로 세로 값 구하기작성자고성훈등록일2025-01-07 10:21 const width = window.innerWidth; // 화면의 가로 크기 const height = window.innerHeight; // 화면의 세로 크기 alert(`가로: `+width+`px, 세로: `+height+`px`);