Default Parameters
How to give function parameters fallback values that are used automatically when no argument or undefined is passed.
Default parameters, added in ES6, let you specify a fallback value directly in a function's parameter list, which the engine uses automatically whenever the corresponding argument is omitted or explicitly passed as undefined. This replaced a pattern of manual || checks inside the function body, and it's a small but frequently tested topic because its evaluation timing and interaction with other parameters has real subtlety.
Default parameters are like a restaurant order form that already has 'medium spice' pre-checked — if you don't specify a spice level, you get medium automatically, but if you explicitly circle 'no spice' (an intentional falsy-ish choice), the kitchen respects that instead of silently defaulting you back to medium.