codex-lv2-may-2025

Level Navigation: 1 2 3 4 5 6 7 8 9 Current Level: 10

🎯 Challenge Part 3: Add Buttons for More Cities

Goal: Scale your app to handle multiple city buttons, creating a comprehensive city switcher.


📋 What You’ll Do

  1. Add more city buttons to your HTML (Seattle, your chosen city, etc.)
  2. Add weather data POJOs for each additional city in your script
  3. Create event listeners for each new city button
  4. Ensure all buttons update the same card with different city data

🚀 Challenge Instructions

Extend your index.html and script.js files:

  1. Add more city buttons to your HTML (Seattle, your chosen city, etc.)
  2. Add weather data POJOs for each additional city in your script
  3. Create event listeners for each new city button
  4. Ensure all buttons update the same card with different city data

Challenge: Scale this up! You’ll need to:


💡 What You’ll Learn


🎯 Suggested Cities to Add


Check Your Work


🏆 Congratulations!

You’ve now built a comprehensive, interactive weather app that can:


🔗 Navigation


You’ve completed all the challenges! Your weather app is now a sophisticated, interactive application.


Level Navigation: 1 2 3 4 5 6 7 8 9 Current Level: 10