untitled notebook

node v14.17.0
version: 1.0.0
endpointsharetweet
const prom1 = async (user)=>{ Promise.resolve().then(()=>{ user.name = "Bernd" }) } const prom2 = async (user)=>{ Promise.resolve().then(()=>{ user.last = "Someone" }) } const dostuff = async (user)=>{ await prom1(user) await prom2(user) console.log(user) } dostuff({test: true})
Loading…

no comments

    sign in to comment