title: Is given async function and .then() is different or not
body: <p>Is working of given both syntax is same or different? </p>
  
  <pre><code>functionName.then((data) =&gt; {console.log(data)})
              .catch((e) =&gt; {console.log(e)});
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>(async () =&gt; {
     let data = (await client.function(input));
     console.log(data);
  })().catch(e =&gt; {
      console.log(e);
  });     
  </code></pre>