This is my code in javascript to display email address by taking them in an array of object:
const client = require("@mailchimp/mailchimp_marketing"