title: Why Does Intellisense Offer Json for a Constant?
body: <p>I declared a constant, assigned to a <code>fetch</code>. Now, intellisense offers <code>json</code> for that constant. </p>
  
  <p>Is it because vscode knows that fetch can return json?</p>
  
  <pre><code>import {topHeadlinesURL} from 'newsAPI.js';
  
  // Delay execution until page loads
  window.addEventListener('load', ()=&gt; {
      kvetchNews();
  });
  
  async function kvetchNews(){
      const res = await fetch(topHeadlinesURL);
      const json = await res.json();
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/h0kKE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h0kKE.png" alt="enter image description here"></a></p>