23 lines667 B

Lesson 9: Project: weather widget

We look at project: weather widget the way working developers use it, with examples you can change and run right away.

Full lesson: https://glibcode.net/courses/javascript-web/lessons/9

Files

  • weather.js: the course project: a weather widget for any city

Tip: Use === unless you have a reason not to.

Tip: Optional chaining saves a lot of ifs: user?.address?.city.

Run it

npx serve .   # then open http://localhost:3000 and the browser console

Exercises

See exercises.md. Ask in the forum once you've tried.