Returns undefined when calling (data.name)
JS CODE
fetch('http://api.openweathermap.org/geo/1.0/direct?q=London&limit=1&appid=92ab5a1bac16afec8f9494ca781440b8')
.then(res => res.json()).then(data => {
console.log(data.name)
})