JS Promise Function


## ECMAScript2015

[Promise.resolve](https://texonom.com/promiseresolve-c091ebf171be44758014b88d380b2a24)


[Promise.all](https://texonom.com/promiseall-5e7f63153a6d463db7f5c1fcd9fab8b4)


[Promise.prototype.catch](https://texonom.com/promiseprototypecatch-d53cbe15af1c4f71b562a1649f630e40)


[Promise.prototype.then](https://texonom.com/promiseprototypethen-4be11bb19017422b9f34a8d7016419ca)



# Promise Structure


![](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F6b164205-cad8-42f7-8b2b-93d736ce023e%2FUntitled.png?table=block&id=b7b631c0-54c0-4e03-ab3b-33d018a0ddbb&cache=v2)

`Promise` 는 다음의 상태중 하나입니다:
- *pending*: 초기상태, fulfilled 되거나 rejected 되지 않음.
- *fulfilled*: 연산 수행 성공.
- *rejected*: 연산 수행 실패.
- *settled*: Promise 가 fulfilled 이거나 rejected 이지만 pending 은 아님.


> [제어 흐름과 에러 처리](https://developer.mozilla.org/ko/docs/Web/JavaScript/Guide/Control_flow_and_error_handling)








