Welcome to your JavaScript learning journey! This folder contains everything you need to master JavaScript fundamentals before moving on to the MERN stack.
By the end of this module, you will understand:
- ✅ Variables (let, const, var)
- ✅ Functions (arrow functions, async/await)
- ✅ Objects and arrays
- ✅ Destructuring
- ✅ Promises and async/await
- ✅ Modules (import/export)
- ✅ Template literals
- ✅ Spread operator
- ✅ And much more!
01-JavaScript/
├── README.md (this file)
├── examples/ # Code examples for each concept
├── exercises/ # Practice problems
└── notes/ # Your learning notes
-
Variables & Data Types
let,const,var- Primitive types (string, number, boolean, null, undefined)
- Type checking
-
Operators & Expressions
- Arithmetic operators
- Comparison operators
- Logical operators
- Ternary operator
-
Control Flow
- If/else statements
- Switch statements
- Loops (for, while, forEach, map, filter)
-
Functions
- Function declarations
- Function expressions
- Arrow functions
- Parameters & arguments
- Default parameters
- Rest parameters
-
Objects & Arrays
- Object creation
- Object methods
- Array methods (map, filter, reduce, find, etc.)
- Object destructuring
- Array destructuring
-
Template Literals & Spread Operator
- Template literals (backticks)
- Spread operator (...)
- Rest operator
-
Promises & Async/Await
- What are promises
- Creating promises
- Chaining promises
- async/await syntax
- Error handling (try/catch)
-
Modules
- ES6 modules
- import/export
- Default vs named exports
-
Advanced Topics
- Closures
- this keyword
- bind, call, apply
- Classes (ES6)
- Start with examples: Go through each example in the
examples/folder - Practice: Complete exercises in the
exercises/folder - Take notes: Document your learning in the
notes/folder - Build projects: Create small projects to reinforce concepts
- Open browser DevTools (F12)
- Go to Console tab
- Type and run JavaScript code
# Run a JavaScript file
node filename.js- Type code yourself - Don't just copy-paste
- Experiment - Modify examples and see what happens
- Break things - Learn from errors
- Build projects - Apply what you learn
- Review regularly - Revisit previous concepts
- Completed all examples
- Solved all exercises
- Built at least 2 small projects
- Understand all core concepts
- Ready to move to Node.js
Once you've mastered JavaScript fundamentals, you'll move on to:
- Node.js - Running JavaScript on the server
- Express.js - Building web APIs
- MongoDB - Database management
Remember: Learning to code takes time and practice. Don't rush, and don't hesitate to revisit concepts you find challenging. You've got this! 💪