let
& const
: block scope, non-reassignable variablesthis
binding behavior...
for arrays and objectsMulti-line strings and variable interpolation using backticks
const name = 'Alice';
const greeting = `Hello, ${name}!`;
Assign default values to function parameters
const greet = (name = 'Guest') => `Hello, ${name}`;
Extract values from objects/arrays
const person = { name: 'John', age: 30 };
const { name, age } = person;
const nums = [1, 2, 3];
const [first, second] = nums;
...
): Expands arrays/objects...
): Collects remaining elements