Modern JavaScript ES6+
ES6 introduced many modern features that make JavaScript easier and more powerful.
Important features include:
- let and const
- Arrow functions
- Template literals
- Destructuring
- Spread operator
- Default parameters
- Classes
- Promises
Arrow Function
const add = (a, b) => a + b;
console.log(add(10, 20));