async await vs promises javascript code example Example: js await const a = async () => { await b(); c(); };