# JavaScript & the DOM Example code and exercises for the glibCode course **[JavaScript & the DOM](https://glibcode.net/courses/javascript-web/)** (Beginner, about 12 hours). Make web pages react: events, the DOM, fetch and async/await. You finish with a weather widget that talks to a real API. ## Lessons | # | Lesson | Code | | --- | --- | --- | | 1 | Values, variables and const | [`lessons/01-values-variables-and-const`](lessons/01-values-variables-and-const/) | | 2 | Functions and arrow functions | [`lessons/02-functions-and-arrow-functions`](lessons/02-functions-and-arrow-functions/) | | 3 | Arrays: map, filter, reduce | [`lessons/03-arrays-map-filter-reduce`](lessons/03-arrays-map-filter-reduce/) | | 4 | Objects and JSON | [`lessons/04-objects-and-json`](lessons/04-objects-and-json/) | | 5 | Selecting and changing elements | [`lessons/05-selecting-and-changing-elements`](lessons/05-selecting-and-changing-elements/) | | 6 | Events and listeners | [`lessons/06-events-and-listeners`](lessons/06-events-and-listeners/) | | 7 | fetch and promises | [`lessons/07-fetch-and-promises`](lessons/07-fetch-and-promises/) | | 8 | async/await without tears | [`lessons/08-async-await-without-tears`](lessons/08-async-await-without-tears/) | | 9 | Project: weather widget | [`lessons/09-project-weather-widget`](lessons/09-project-weather-widget/) | ## Getting started ```sh git clone https://git.glibcode.net/glibcode/javascript-web.git cd javascript-web ``` Node.js 20 or newer for the `.js` files; the DOM lessons run in any browser. Questions? Ask in the course forum or write to help@glibcode.net. ## License The code is MIT licensed (see `LICENSE`). The lesson texts are © glibCode.