Simple tutorial for anyone who never worked with node
This is a public repository.
"Startup" topics are on the master
branch.
Other topics would be stored under topic/<name>
branch once ready.
01 helpers
- Basic node syntax
- Helpers used in this tutorial
- Syntax convention for this tutorial
02 helpers-lib
- Simpe node library
- Use of
require
03 single threaded
- Node is NOT multi-threaded
04 single threaded but asynchronous
- Node is asynchronous to achieve multiple operations running in parallel
- System operations (I/O) can work in parallel
05 classes
- JavaScript class example (definition and usage)
06 event queue
- Event based asynchronous processing with node (basic concept of Node)
07 null, undefined
- Null, undefined and similar concepts in JavaScript
08 typeOf
- Basic types in JavaScript (weakly typed language)
09 promises
- Basic concept of a promise in JavaScript still used often (though often not very developer friendly)
10 await vs promise
- Advantage of
await
overpromise
11 promise chaining
- Advantage of promises
12 error handling
- How to handle errors in JavaScript (with promise, with await)
13 promise reject
- Failing a promise
14 context and arrows
- Execution context
- Arrow functions
16 strange arrows
- Bonus: strange topics of arrows in JavaScript