title: Why don't both functions log the same result?
body: <p>The 1st example logs the resolved value of the promise from the fetch.<br>
  The 2nd example logs the pending promise object to the console which I then have to <code>.then((res) =&gt; {console.log(res)})</code> to get the resolved value.</p>
  <p>I'm using async functions so I thought both examples were equivalent...?</p>
  <p>I have not shown my API key but it works when I use it in the code.</p>
  <p>1st Example:</p>
  <pre><code>const apiKey = 'somekey';
  const city = 'Berlin'
  
  const getWeather = async (cityArg, apiKeyArg) =&gt; {
      let city = cityArg;
      let apiKey = apiKeyArg;
      try{
          const response = await fetch(`https://api.openweathermap.org/data/2.5/weather?q=${city}&amp;appid=${apiKey}`);
          if(response.ok) {
            let jsonResponse = await response.json();
              console.log(jsonResponse);
              //return jsonResponse;
          }
      } catch(error) {
          console.log(error);
      }
  }
  
  getWeather(city, apiKey);
  //console.log(getWeather(city, apiKey));
  </code></pre>
  <p>2nd Example:</p>
  <pre><code>const apiKey = 'somekey';
  const city = 'Berlin'
  
  const getWeather = async (cityArg, apiKeyArg) =&gt; {
      let city = cityArg;
      let apiKey = apiKeyArg;
      try{
          const response = await fetch(`https://api.openweathermap.org/data/2.5/weather?q=${city}&amp;appid=${apiKey}`);
          if(response.ok) {
            let jsonResponse = await response.json();
              //console.log(jsonResponse);
              return jsonResponse;
          }
      } catch(error) {
          console.log(error);
      }
  }
  
  //getWeather(city, apiKey);
  console.log(getWeather(city, apiKey));
  </code></pre>