title: Getting Promise { <pending> } with NodeJS and express
body: <p>Hello i'm getting Promise {  } when i try to log my products. Can someone tell me what i'm doing wrong and fix this ? I can't figure it out. Thanks!</p>
  
  <pre><code>const express = require('express');
  const app = express();
  const port = process.env.port || 3000;
  const fetch = require('node-fetch');
  
  let products = getData();
  
  async function getData() {
  await fetch('some link',
      {
          method: 'GET',
          headers: {
              'Content-Type': 'application/json'
          }
      }
  ).then(res =&gt; res.json())
  .then((res) =&gt; {return res.json})
  };
  
  console.log(products);
  </code></pre>