News feeds

var url = ‘https://newsapi.org/v2/everything?’ +
‘q=Apple&’ +
‘from=2019-07-31&’ +
‘sortBy=popularity&’ +
‘apiKey=c4817213b5cd464392968caf199b7a1c’;

var req = new Request(url);

fetch(req)
.then(function(response) {
console.log(response.json());
})