How do I resolve this object promise? [duplicate]

I’m initializing a LeagueAPI object that returns a dictionary when a function is called on it. However, when I try to write the returned data to my HTML file, it displays an [object Promise] instead of the data. Here is the code:

LeagueAPI = new LeagueAPI('********', Region.NA);

LeagueAPI.initialize()
    .then().catch(console.error)


document.write(LeagueAPI.getFeaturedGames())

I’ve tried a few implementations of this, but I often run into a CORS error policy. What would be the correct implementation to write the returned data to the HTML file?