title: api endpoint giving undefined
body: <p>I m trying to make a call to shorturl API which fulfills the promise but when I console.log the result and next then, it says undefined.</p>
  <p>following is my code</p>
  <pre><code>const handleCall = (e) =&gt;{
      e.preventDefault();
       fetch(`https://api.shrtco.de/v2/shorten?url=www.udemy.com`)
       .then(res =&gt;  console.log( res.json()))
       .then(res =&gt; console.log(res))
  
  }
  </code></pre>