I have the following code which fetches news from different news urls;
function displayNews() {
Promise.all([fetch(BUSINESS_NEWS_URL), fetch(APPLE_NEWS_URL)])
.then(responses => {
return responses.map(response => response.json())
}).then((data) => console.log(data)) // this still prints [Promise]
}
For some reason I am getting [Promise] getting displayed instead of the actual data. What am I missing?