title: I can't return the response from axios request
body: <p>I'm trying to create a module in node to return a json from API using axios request. But when i try to return the response out of the function <code>getJson()</code>, nothing is returned to me.</p>
  
  <pre class="lang-js prettyprint-override"><code>const axios = require('axios');
  const authentication = require('./authentication');
  
  
  const url = `https://api.codenation.dev/v1/challenge/dev-ps/generate-data?token=${authentication.token}`;
  
  const getJson = async () =&gt; {
    const response = await axios.get(url);
    // Here i can see the json normally
    console.log(response.data)
    return response.data
  }
  
  const response = getJson()
  // but here nothing is shows to me in console.
  console.log(response)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/zkGqQ.png" rel="nofollow noreferrer">return of console</a></p>