A comprehensive JavaScript learning course designed to take students from beginner to intermediate level through hands-on exercises and automated testing.
This course covers essential JavaScript concepts through practical coding exercises:
- Variables & Data Types - Understanding different data types and variable declarations
- Functions - Function creation, parameters, return values, and scope
- Conditionals - Decision making with if/else statements and logical operators
- Loops - Iteration with for loops, while loops, and array traversal
- Arrays - Array creation, manipulation, and common methods
- Objects - Object creation, property access, and methods
- Node.js (version 14 or higher)
- Basic understanding of programming concepts
- A code editor (VS Code recommended)
- Clone or download this repository
- Navigate to the project directory
- Run
npm install(if additional dependencies are added later)
- Start with Exercise 1: Navigate to
exercises/01-variables/ - Read the Instructions: Each exercise has a detailed README.md
- Complete the Exercise: Edit the
exercise.jsfile - Test Your Solution: Run
node test.jsin the exercise directory - Check Results: Green output means success, red means there are issues to fix
- Move to Next Exercise: Once all tests pass, proceed to the next module
cd exercises/01-variables
node test.jsnpm run test:allnpm run test:exercise 01-variablesexercises/
├── 01-variables/ # Variables and data types
├── 02-functions/ # Function fundamentals
├── 03-conditionals/ # If/else and logical operators
├── 04-loops/ # For and while loops
├── 05-arrays/ # Array manipulation
└── 06-objects/ # Object fundamentals
- Each exercise includes a
solution.jsfile with the complete solution - Test files provide comprehensive coverage of edge cases
- Exercises are designed to build upon previous concepts
- Difficulty progresses gradually from basic to intermediate
- Read Error Messages Carefully - They provide valuable clues
- Test Frequently - Run tests after each small change
- Don't Skip Exercises - Each builds on the previous one
- Experiment - Try different approaches to understand concepts better
- Ask Questions - Don't hesitate to seek help when stuck
If you encounter issues or have questions about the exercises, please reach out to your instructor.
Happy coding! 🚀