title: Using 'await' and 'async' correctly in NodeJS
body: <p>I have this piece of code:</p>
  <pre><code>function func(x) {
      return func2(x)
          .then((result) =&gt; {
              let a = await func3(result.a);
              let b = await func3(result.b);
              return {'a': a, 'b': b};
          });
  }
  </code></pre>
  <p>And I need to put <code>async()</code> somewhere, but I am unable to figure out where.</p>
  <p>I tried before the <code>=&gt;</code> and after the <code>=&gt;</code>, but I got a syntax error in both cases.</p>
  <p>P.S, if I use it in the declaration of <code>func</code>, then I get a runtime error <code>await is a reserved word</code>.</p>