콜백(callback)지옥 탈출하기
마스터욱
0
138
0
0
2023-02-27 16:28:27
참고링크
let text = '하나';
text = text + await new Promise((resolve, reject) => {
setTimeout(() => {
resolve('둘');
}, 1000);
});
text += '셋';
console.log(text + '넷');