Call Stack
: Stack구조로서 함수 불리는 형태가 LIFO 구조인 last in first out으로 단계별로 함수가 실행되고 없어진다.
function two(){
console.log("hello");
}
function one(){
two();
}
function zero(){
one();
}
Primitive Types
: Stack이 붕괴될때 에러가 나타나는 현상 stack에 올릴수 있는 사이즈가 제한되어 있어서 maximum callstack size를 초과했다.
function hello(){
bye();
}
function bye(){
hello();
}
hello();
null | NAN | undefined 차이점
: undefined = 정의가 되지 않음.
: Null = 존재하지 않음.
: NAN = Not a number로 말이 안되는 망한 공식이란 의미이다.