Hello I am trying to get the json to appear like the example of the weather app challenge.
function success(position) {
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
fetch('https://fcc-weather-api.glitch.me/api/current?lat='+latitude+'&'+'lon='+longitude)
.then(function(response){
if (response.status === 200) {
console.log(response.json());
}
})
}
navigator.geolocation.getCurrentPosition(success);
The closest thing I have getten to show up is object promise
in the console. Any clues on how to move forward.