Lesson 78
30 XP

Weather Display

Build a Weather App with Simulated Data

Step 1 of 5

Understanding Weather Apps

Weather apps fetch data and display it in a user-friendly way. While real apps use APIs, we'll practice with simulated data first.

Weather App Features:

  • Current Weather: Temperature, conditions, humidity
  • Location: City or region selection
  • Forecast: Future weather predictions
  • Icons: Visual representation of conditions
  • Details: Wind speed, humidity, etc.
// Weather Data Structure
const weather = {'{'}
temp: 72,
condition: 'Partly Cloudy',
humidity: 65,
windSpeed: 12,
icon: '⛅'
{'}'}

Sample Weather Card:

72°F
Partly Cloudy
New York