Chaining using promises

PHOTO EMBED

Thu Jul 29 2021 22:01:24 GMT+0000 (UTC)

Saved by @stephanieraymos

function test() {
    return func1()
    .then(v1 => {
        return func2(v1);
    })
    .then(v2 => {
        return func3(v1, v2);
    });
}
content_copyCOPY

https://afteracademy.com/blog/migrating-from-promise-chains-to-async-await