Initial commit

Daniel Tanaka 1 year ago
commit b370f2cab80a0698be784ea06e4795ae09088a57
3 changed files with 58 additions and 0 deletions
+3-0.gitignore ADDED
@@ -0,0 +1,3 @@
1+node_modules/
2+.DS_Store
3+.env
+21-0LICENSE ADDED
@@ -0,0 +1,21 @@
1+MIT License
2+
3+Copyright (c) 2025 glibCode
4+
5+Permission is hereby granted, free of charge, to any person obtaining a copy
6+of this software and associated documentation files (the "Software"), to deal
7+in the Software without restriction, including without limitation the rights
8+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+copies of the Software, and to permit persons to whom the Software is
10+furnished to do so, subject to the following conditions:
11+
12+The above copyright notice and this permission notice shall be included in all
13+copies or substantial portions of the Software.
14+
15+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+SOFTWARE.
+34-0README.md ADDED
@@ -0,0 +1,34 @@
1+# JavaScript & the DOM
2+
3+Example code and exercises for the glibCode course **[JavaScript & the DOM](https://glibcode.net/courses/javascript-web/)** (Beginner, about 12 hours).
4+
5+Make web pages react: events, the DOM, fetch and async/await. You finish with a weather widget that talks to a real API.
6+
7+## Lessons
8+
9+| # | Lesson | Code |
10+| --- | --- | --- |
11+| 1 | Values, variables and const | [`lessons/01-values-variables-and-const`](lessons/01-values-variables-and-const/) |
12+| 2 | Functions and arrow functions | [`lessons/02-functions-and-arrow-functions`](lessons/02-functions-and-arrow-functions/) |
13+| 3 | Arrays: map, filter, reduce | [`lessons/03-arrays-map-filter-reduce`](lessons/03-arrays-map-filter-reduce/) |
14+| 4 | Objects and JSON | [`lessons/04-objects-and-json`](lessons/04-objects-and-json/) |
15+| 5 | Selecting and changing elements | [`lessons/05-selecting-and-changing-elements`](lessons/05-selecting-and-changing-elements/) |
16+| 6 | Events and listeners | [`lessons/06-events-and-listeners`](lessons/06-events-and-listeners/) |
17+| 7 | fetch and promises | [`lessons/07-fetch-and-promises`](lessons/07-fetch-and-promises/) |
18+| 8 | async/await without tears | [`lessons/08-async-await-without-tears`](lessons/08-async-await-without-tears/) |
19+| 9 | Project: weather widget | [`lessons/09-project-weather-widget`](lessons/09-project-weather-widget/) |
20+
21+## Getting started
22+
23+```sh
24+git clone https://git.glibcode.net/glibcode/javascript-web.git
25+cd javascript-web
26+```
27+
28+Node.js 20 or newer for the `.js` files; the DOM lessons run in any browser.
29+
30+Questions? Ask in the course forum or write to help@glibcode.net.
31+
32+## License
33+
34+The code is MIT licensed (see `LICENSE`). The lesson texts are © glibCode.