> For the complete documentation index, see [llms.txt](https://april.gitbook.io/learning-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://april.gitbook.io/learning-js/chapter-11./11.4.md).

# 11.4 예외 처리와 호출 스택

* 에러는 호출 스택 어디에서든 캐치할 수 있음
* 어디에서 이 에러를 캐치하지 않으면 자바 스크립트 인터프리터는 프로그램을 멈춤
  * 처리하지 않은 (unhandled) 예외
  * 캐치하지 않은 (uncaught) 예외

두 개의 에러는 프로그램을 충돌하는 원인이 되기 때문에 **호출 스택에서 문제 해결에 유용한 정보를 얻어 해결**해나가야함
