This repository is now organized as a small learning library for JavaScript practice.
- Start with lessons/basics.js to review variables, arithmetic, swapping, comparisons, and simple control flow.
- Move to lessons/strings-and-arrays.js for string and array exercises.
- Continue with lessons/numbers-and-loops.js for digits, primes, Fibonacci, Armstrong numbers, and loop practice.
- Test yourself with quizzes/javascript-quiz.js.
Each file is a standalone Node.js script. Run any lesson directly with:
node lessons/basics.jsYou can also copy individual functions into your own sandbox, change the inputs, and compare the output with the comments.
lessons/contains curated, readable practice examples.quizzes/contains quiz-style prompts and answers.
- Prefer reading one lesson file at a time instead of scanning everything at once.
- When a function is returned instead of printed, try
console.logwith your own values. - If you want a next step after these exercises, add your own versions of the same functions without looking at the answers first.