1// Full tutorial: https://www.youtube.com/watch?v=WZNG8UomjSI
2
3fetch(
4 "https://api.openweathermap.org/data/2.5/weather?q=" +
5 city +
6 "&units=metric&appid=" +
7 apiKey
8)
9 .then((response) => response.json())
10 .then((data) => console.log(data));