๋น๋๊ธฐ๋?ํ์ฌ ์คํ์ค์ธ ์์ ๊ณผ๋ ๋ณ๋๋ก ๋ค๋ฅธ ์์ ์ ์ํํ๋ ๊ฒCallback์ด๋?๋น๋๊ธฐ ์์ ์ด ์๋ฃ๋๋ฉด ํธ์ถ๋๋ ํจ์๋น๋๊ธฐ ํจ์์ ๋งค๊ฐ๋ณ์๋ก ํจ์ ๊ฐ์ฒด๋ฅผ ๋๊ธฐ๋ ๊ธฐ๋ฒPromise๋?์๋ฐ์คํฌ๋ฆฝํธ์์ ๋น๋๊ธฐ ์์ (setTimeout, API ์์ฒญ)์ ๋ค๋ฃจ๊ธฐ ์ํ ๊ฐ์ฒดpending(๋๊ธฐ์ค(์์ ์ค))fulfilled(์ฑ๊ณต)rejected(์คํจ)const p = new Promise((resolve, reject) => { setTimeout(() => { resolve("์ฑ๊ณต!"); }, 1000);}).then(value => { console.log(value);}).catch(err => { console.error(err);}).finally(() => { console.log("๋ฌด์กฐ๊ฑด ..