title: How to resolve multiple then() promise into one
body: <p>In this code I used multiple <code>then()</code> methods, I just want to convert it into only one then, How it is possible.</p>
  <pre><code>getGreeting = () =&gt; {
    fetch(url)
      .then((response) =&gt; response.json())
      .then((result) =&gt; result.data)
      .then((data) =&gt; printCards(data))
      .catch((err) =&gt; {
        console.log(err);
      });
  };
  </code></pre>