akkey247
1/16/2018 - 9:09 AM

【JavaScript】async/await の使い方

const func1 = async () => {
    console.log("hello1");
}

const func2 = async () => {
    console.log("hello2");
}

const func3 = async () => {
    await func1();
    await func2();
    console.log("hello3");
}

func3();