Can anybody see why my javascript isn't working

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.

Link -

ReferenceError: position is not defined

In the HTML, at getWeather(position), position is not defined anywhere. Also, you defined the getWeather function with no parameters, so you should call it as getWeather().

The ReferenceError should go away after that change, but you’ll hit a different error (related to your usage of the weather API)