> For the complete documentation index, see [llms.txt](https://heunnajo.gitbook.io/zerocho-javascript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://heunnajo.gitbook.io/zerocho-javascript/undefined-22.md).

# 호출스택

Call Stack

Last-in-First-out 구조이다.

```javascript
//아래 코드의 실행순서는? d->e->c->b->a
/*
function d() {
    console.log('d');
}

function e() {
    console.log('e');
}
function a() {
    function b() {
        function c() {
            console.log('c');
        }
        c();
        console.log('b');
    }
    b();
    console.log('a');
}
d();
e();
a();//함수a를 호출하니 함수a 안에서 b호출! b호출 하니 c 호출!c실행
                   b리턴하며 a실행    c 리턴하며 b실행
*/
```
