const data = []; axios.get('https://randomuser.me/api/') .then((res) => { data = res.data.results; }) console.log(data);
This Pen is owned by Ray on CodePen.
See more by @hsiangfeng on CodePen
This Pen doesn't use any external CSS resources.