A complete hands-on learning path with 40 progressive JavaScript problems, organized into three clear levels: Basics → Arrays/Strings → ES6 + DOM.
This repo is designed for beginners who want to learn JavaScript by coding real problems, not just reading theory.
01_Basics/ → Variables, loops, conditions, functions
02_Arrays_Strings_Objects/ → Arrays, strings, objects, sorting, HOFs
03_ES6_Functions_DOM/ → Arrow functions, destructuring, DOM tasks
All tasks are written with:
- Clear explanations -> Clean code -> Safe input validation -> Beginner-friendly structure
Run like:
node folder/problem.jsExample: node 01_Basics/03_even_odd.js
Use a live server:
npm run serve:html
or
VS Code → "Go Live" / "Preview in Browser".
✔ JavaScript fundamentals ✔ Core algorithmic thinking ✔ ES6 modern features ✔ Real UI manipulation ✔ Console-based mini applications
👉Foundational JavaScript: -Hello World, -variables, -Loops, -conditions, -Functions, -Prime check, -palindrome, -Fibonacci, -factorial, -patterns, -games.
👉Core real-world operations: -Reverse array, -Count vowels, -Word frequency, -Sorting, -Flatten array, -Find missing number
👉Modern JS + DOM: -Arrow functions, -Destructuring, -Map, -filter, -reduce, -Random number generator, -Stopwatch console app, -DOM button click, -Background color changer, -Form validation
✔ No theory overload ✔ Every problem has a purpose ✔ You learn by coding real things ✔ Progressive difficulty ✔ Pure vanilla JavaScript ✔ Perfect prep for interviews & projects
A separate repo for Mini JavaScript Projects (Todo App, Calculator, Weather App, etc.) will extend this learning.