This repository contains examples of some curiosities and new features of JS, with the most updated versions of Ecmascript, like ES2022 and so on.
More examples to come soon.
- Import/export module syntax without transpiling
- Class private attributes and methods syntax
- Class static blocks
- Global async/awaits
- Lazy import
- Array.at()
- Everything is object?
- Regular function and arrow function scope differences
- Boolean evaluation
- Promises demystified
- Empowering the rest/spread operator
and more...