const getUserEmails = async () => {
    const response = await fetch("https://[Log in to view URL]");
    const jsonUserData = await response.json();
    
    const userEmailArray = jsonUserData.map(user => {
        return user.email;
    });
    
    postToWebPage(userEmailArray);
};

const postToWebPage = (data) => {
    console.log(data);
}

getUserEmails();

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: