title: Wrapping promise in async/await
body: <p>I'm struggling a bit with async/await and returning a value from a Promise.</p>
  
  <pre><code>function test () {
    return new Promise((resolve, reject) =&gt; {
      resolve('Hello')
    })
  } 
  
  async function c() {
    await test()
  }
  </code></pre>
  
  <p>As I understood things I should be able to get a value by doing:</p>
  
  <pre><code>console.log(c())
  </code></pre>
  
  <p>But clearly I am missing a point here as this returns a promise.  Shouldn't it print "hello"? On a similar note I am unclear as to whether a callback needs to be converted to a promise before wrapping it in async/await?</p>