Cheat Sheet
The whole course.
Let's review the whole course in a few screens. Pause on any one you want to keep as a reference.

- The whole course
- A few screens
- Pause to keep them
The basics
Use const by default, and let when a value changes. The main types are numbers, strings, booleans, null, and undefined. Compare with three equals. And template literals, with backticks, put values inside strings.
| key | value |
|---|---|
| const / let | never var |
| === | strict equality |
| `Hi ${name}` | template literals |
| typeof | check a type |
Functions and arrays
Arrow functions are short and common. Default parameters fill in missing arguments. And the array methods map, filter, reduce, find, and sort do most of the work with lists. Spread copies and combines arrays.
| key | value |
|---|---|
| (a, b) => a + b | arrow function |
| map / filter | transform, select |
| reduce | combine into one |
| [...a, ...b] | spread |
Objects and classes
Objects store named values. Destructuring unpacks them, and optional chaining reads them safely. JSON turns them into text and back. Classes are blueprints, with constructors, methods, getters, and private fields.
| key | value |
|---|---|
| { a, b } = obj | destructuring |
| obj?.x ?? y | safe reading |
| JSON.parse / stringify | text and back |
| class, extends | blueprints |
Async, DOM, and Node
Promises stand for future values, and async and await make them easy to use. Fetch gets data, so always check response dot o k. In the browser, query selector finds elements, and add event listener responds to people. And Node runs JavaScript on servers and in the terminal.
| key | value |
|---|---|
| async / await | readable async |
| fetch + res.ok | get data safely |
| querySelector | find elements |
| addEventListener | respond to events |
Summary
That's the whole course on four screens. Next, the final quiz.
Key takeaways- Basics, functions, arrays
- Objects and classes
- Async, DOM, Node