👩💻 Join our community of thousands of amazing developers!
This simple weather page get’s the users’ location and returns the current temperature, a short description of the upcoming forecast, and a corresponding animated icon. What, how? First, a loading message is displayed while the page checks if a browser location is available and permissible by the user via the geolocation API. If available, getCurrentPosition() is called and we get a position object which contains latitude and longitude coordinates. With the coordinates, the page gets the users’...