Answers for "display weather javascript"

3

display weather javascript

// Full tutorial: https://www.youtube.com/watch?v=WZNG8UomjSI

fetch(
  "https://api.openweathermap.org/data/2.5/weather?q=" +
    city +
    "&units=metric&appid=" +
    apiKey
)
  .then((response) => response.json())
  .then((data) => this.displayWeather(data));
Posted by: Guest on June-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language