Geolocation and weather API

Hi there, I’m new to Javascript and I’m trying to create a page that shows the users weather (temp, wind etc.) without hardcoding their location. I am at a loss for where to start? Any bright ideas?

Hi @mandytorki, it sounds like you want to know the location of each visitor in order to provide their local weather. If that’s the case, you’ll want to look into geolocation.

MDN Webdocs provides a working example of code that detects user location via the Geolocation API. This might be a great place to start!