SPA는 하나의 웹 브라우저 와 하나의 도큐먼트만 로드하는 싱글 웹페이지, 웹사이트 또는 웹 어플리케이션입니다. SPA는 유저가 사용하는 동안 페이지의 리로딩reloading이 필요없고, 컨텐츠의 변경, 변화가 필요할 때만 그 부분만 업데이트가 됩니다. 이는 자바스크립
클로저는 자바스크립트가 렉시컬 스코프를 따르기 때문에 일어나는 일입니다. 렉시컬 스코프를 실행 컨텍스트 관점에서 간단하게 말씀드리면 코드를 실행할 때 실행 컨텍스트에 소스코드가 평가되어 쌓입니다. 이때 함수가 참고할 수있는 환경이 정의 되는데 이때 함수의 렉시컬 스코프