Closures
Explanation : A closure is when a function "remembers" variables
from its outer scope, even after that outer function has finished
executing.
- Enables data privacy and function factories.
Promises &
Async/Await
Explanation: Promises handle asynchronous operations.
Async/await makes promise code look synchronous.
• Essential for API calls and handling delayed operations.
The 'this' Keyword
Explanation: 'this' refers to the object executing the current
function. Its value depends on HOW the function is called.
Event Loop
Explanation: JavaScript is single-threaded but uses an event loop
to handle async tasks without blocking.
• Why it matters: Understand how code execution order works.
Hoisting
Explanation: Variable and function declarations are moved to
the top of their scope during compilation.
= Explains why some code works before declaration.
Arrow Functions
Explanation: A shorter syntax for functions. They DON'T have
their own 'this'.
• Great for callbacks, but behaves differently than regular
functions
Destructuring
Explanation: Extract values from arrays or objects into separate
Cleaner, more readable code.
Spread & Rest Operators
Explanation: The ... operator. Spread expands arrays/objects.
Rest collects items into an array.
– Powerful tool for copying and combining data.
map(), filter(), reduce()
Explanation:Array methods for transforming data without
mutating the original array.
• Functional programming style, essential for modern JS.
Call, Apply, and Bind
Explanation: Methods to control what 'this' refers to in a
function.
• Crucial for context management in JavaScript.