Promise

1. ๋™๊ธฐํ™”

function a(){
    console.log('A')
}
function b(){
    console.log('B')
}
a();
b();
// A B

2. ๋™๊ธฐํ™”

function a(){
    setTimeout(function(){
        console.log('A')
    }, 1000)
}
function b(){
    console.log('B')
}
a();
b();
// B A

3. ์ฝœ๋ฐฑ ์ง€์˜ฅ

4. promise

Last updated

Was this helpful?