JavaScript: Using fetch() to Geolocate Map & Weather from IP

I built this as a lesson for one of the JavaScript college courses I teach, a demonstration on returning external data using JS fetch().

I put together this app to get my IP address and geolocate my zip code based on that.

Then it adds a current weather forecast based on my zip code, and plots the address to a live Leaflet Map based on latitude and longitude.

Finally at runtime it populates empty DOM elements with the returned data from the APIs.