Before starting this course, make sure you have:
- Node.js installed (version 14 or higher)
- Download from: https://nodejs.org/
- Verify installation:
node --version
- A code editor (VS Code recommended)
- Download from: https://code.visualstudio.com/
- Basic terminal/command line knowledge
-
Download the Course
- Download or clone this repository to your computer
- Extract the files if downloaded as a ZIP
-
Open in Your Code Editor
- Open the entire
javascript-fundamentals-coursefolder in VS Code - This will give you access to all exercises and files
- Open the entire
-
Verify Node.js Installation
node --version npm --version
-
Start with Exercise 1
- Navigate to
exercises/01-variables/ - Read the
README.mdfile carefully - Open
exercise.jsand complete the functions - Test your work:
node test.js
- Navigate to
-
Read the Instructions
- Each exercise folder has a detailed
README.md - Understand what you need to accomplish
- Each exercise folder has a detailed
-
Complete the Exercise
- Open the
exercise.jsfile - Fill in the TODO sections
- Don't modify the export statements at the bottom
- Open the
-
Test Your Solution
cd exercises/01-variables node test.js -
Check Results
- ✅ Green output = Success! Move to next exercise
- ❌ Red output = Fix the errors and try again
-
Get Help if Stuck
- Review the README.md for hints
- Check the examples provided
- Ask your instructor for help
# Navigate to the exercise directory
cd exercises/01-variables
# Run the test
node test.js# Run all exercise tests
npm test
# or
npm run test:allnpm run test:exercise 01-variables
npm run test:exercise 02-functions
npm run test:exercise 05-arrays- Each exercise is self-contained in its own directory
- Students work through exercises sequentially
- Automated testing provides immediate feedback
- Solution files are provided for reference
- Use the test runner to check student progress
- Solution files contain multiple approaches for teaching
- Tests cover edge cases and common mistakes
- Clear error messages guide student learning
- Create a new directory:
exercises/XX-topic-name/ - Add required files:
README.md- Instructions and learning objectivesexercise.js- Student template with TODO sectionstest.js- Comprehensive test suitesolution.js- Complete solution for reference
- Modify difficulty levels in existing exercises
- Add bonus challenges for advanced students
- Adjust test cases based on class needs
- Create additional exercises following the same pattern
- Ensure students are in the correct directory
- Check that
exercise.jsexists and has proper exports
- Verify Node.js is installed correctly
- Check file permissions
- Ensure no syntax errors in student code
- Review the README.md examples
- Use solution.js to show different approaches
- Encourage experimentation and testing
- 01-variables - Data types, variable declarations
- 02-functions - Function syntax, parameters, closures
- 03-conditionals - If/else, logical operators (to be added)
- 04-loops - For/while loops, iteration (to be added)
- 05-arrays - Array methods, manipulation
- 06-objects - Object creation, properties (to be added)
If you encounter any issues with the course setup or exercises, please contact your instructor or check the main README.md file for additional guidance.
Happy coding! 🚀