Hey guys and gals,
I don’t need any help getting my weather api project to work. I just started to make headway, my project isn’t done yet but I had a question about something.
I’m using the FCC api here: https://fcc-weather-api.glitch.me/
My questions is, when I’m getting information from the api such as:
$.getJSON(url, function(data) {
$("#temp").html(data.weather[0].description);
});
Why do I have to specify “weather[0]” instead of just weather?