Functions
Function Basics
Functions are reusable blocks of code defined with function declarations, expressions, or arrow functions.
Arrow Functions
Arrow functions provide a shorter syntax and lexically bind 'this'. Example: const sum = (a, b) => a + b.
Scope & Hoisting
Scope defines variable accessibility. Hoisting moves declarations to the top of their scope, allowing limited use before definition.