2 months ago
23 lines653 B
Lesson 2: Functions and arrow functions
In this lesson you'll work through functions and arrow functions step by step, with short exercises after each idea.
Read the full lesson: https://glibcode.net/courses/javascript-web/lessons/2
Files
functions.js: function declarations and arrow functions
Tip: Optional chaining saves a lot of
ifs:user?.address?.city.
Tip: The browser's Network tab shows every
fetchwith its status and response.
Run it
node functions.js
Exercises
See exercises.md. Ask in the forum once you've tried.