Hello, I am a newbe and i am at the weather app project! I have written some code trying to implement the fcc api for the weather but i am stuck and dont know where are my mistakes!
https://codepen.io/Stivi7/pen/NvdomP here is the code i have written this far!
Any advice will help!
–> “https://fcc-weather-api.glitch.me/api/current?lon=” + long + “&lat=” + lat
then check if you are actually getting the right properties from the returned JSON
i did the url change but i am stuck at the getJSON function below
You need to look at the returned JSON, you are not accessing the values properly:
Example : data.weather.icon
… Read again how to access JSON properties…