Lesson 34 of 50

Weather App

Create an app that fetches weather data from an API and displays it to the user. This teaches asynchronous JavaScript and DOM updates.

fetch('https://api.weatherapi.com/v1/current.json?key=YOUR_KEY&q=London')
  .then(res => res.json())
  .then(data => console.log(data));
← Previous Next →