9. Promise (state, producer, consumer)
두 가지 고려 1. state(상태) : process가 operation을 수행하고 있는 중인지, 기능 수행이 완료된 후 성공했는지 실패했는지 2. producer, consumer의 차이점 (원하는 데이터를 제공하는 사람과, 제공된 데이터를 필요로 하는 사람에 대한 이해) ->Promise를 이용하여 callback 지옥 극복할 수 있다 - state (pending, fulfilled, rejected) pending (operation 수행 중)-> fulfilled(완료된 상태) or rejected(문제 발생) console.log("Promise 시작!!"); // 1.Producer // 2.Consumer : then, catch, finally // then (성공했을 때, resolv..