Notes for learning Node.js
Node.js philosophy
- Small core
- Small modules
- Small surface area
- Simplicity and pragmatism
Key features (Basic and important to know)
- Let & Const keywords
- Arrow function
- Benifit of using
this
keyword
- Benifit of using
- Class syntax
Destructuring
{ a, b } = someObject; // SyntaxError
({ a, b } = someObject); // OK
({ a, b }) = someObject; // SyntaxError
const { a, b } = someObject; // OK
Value below was evaluated just now
Examining objects via console.log happens in an asynchronous manner. The console receives a reference to the object synchronously, but does not display the properties of the object until it is expanded.
竟然无法拒绝你的打赏