const data = [];

axios.get('https://randomuser.me/api/')
  .then((res) => {
    data = res.data.results;
  })

console.log(data);

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/axios/0.24.0/axios.min.js