Key Takeaway: JS/TS is ALWAYS Pass-by-Value. The "value" being passed is either a primitive directly, or a reference (a pointer) to an object.
- Types:
number,string,boolean,bigint,symbol,null,undefined - What's Passed: An exact copy of the value itself.
- Behavior:
- When you pass a primitive to a function, the function gets its own, independent copy.