🔁 1. Callbacks
-
Goal: Understand how functions can be passed and executed later.
-
Study Plan:
-
Write a function that takes a callback (e.g., simulate an API call).
-
Understand callback hell and how it leads to Promises.
-
🔄 2. Promises
-
Goal: Handle async operations cleanly.
-
Study Plan:
-
Create basic promises using
new Promise(). -
Learn
.then(),.catch(), and.finally()chaining.
-
⏳ 3. Async/Await
-
Goal: Write cleaner async code.
-
Study Plan:
-
Convert a promise-based function to
async/await. -
Handle errors using
try...catch.
-
🔧 4. Destructuring
-
Goal: Unpack arrays/objects quickly.
-
Study Plan:
-
Practice array/object destructuring in variables, function parameters, and return values.
-
➡️ 5. Arrow Functions
-
Goal: Use concise syntax and understand lexical
this. -
Study Plan:
-
Convert regular functions to arrow functions.
-
Understand how
thisbehaves differently.
-
📦 6. Modules
-
Goal: Organize code into reusable files.
-
Study Plan:
-
Use
export/importsyntax. -
Split functions/constants across files.
-
Comments