fetch('https://api.exchangerate-api.com/v4/latest/USD') .then(response =>{ return response.json(); }).then(data =>{ console.log(data); })