title: My api request is returning nothing, no error message either
body: <p>when i run this file, i get nothing. If i run instead <code>console.log(getInfo());</code> at the end i just get <code>Promise &lt;pending&gt;</code>. Please help.</p>
  
  <pre><code>function getInfo(){
      var url = `https://api.nutritionix.com/v1_1/search/cheddar%20cheese?fields=item_name%2Citem_id%2Cbrand_name%2Cnf_calories%2Cnf_total_fat&amp;appId=${apiId}&amp;appKey=${apiKey}`;
      return(
      fetch(url)
      .then(data=&gt;{
  
          return JSON.parse(data);
       })
      );
  }
  
  getInfo().then(result =&gt;{
      console.log(result);
  </code></pre>