src.js 201 B

12345678
  1. function f (x) { return new Promise(resolve => {
  2. process.nextTick(() => { resolve(x) }) }) }
  3. async function add (x) {
  4. return x + await f(20) + await f(30)
  5. }
  6. add(10).then(v => { console.log(v) })