I’m working on the “Show the Local Weather” project and I’m trying to fetch data from the weather API, and I can’t figure out how to display the json data on my webpage. Help would be great, thanks.
ReferenceError: position is not defined
In the HTML, at
position is not defined anywhere. Also, you defined the
getWeather function with no parameters, so you should call it as
The ReferenceError should go away after that change, but you’ll hit a different error (related to your usage of the weather API)