This repository is a hands-on JavaScript learning workspace, with interactive examples, UI demos, and practical algorithm challenges. Each folder is a focused topic or mini-project to practice core JavaScript concepts and DOM skills.
Array/- array manipulation tasks and search logicbasic calculator/- simple calculator UI and logicDOM/- DOM events and dynamic UI interactionsLoop/- loops and sequence processing tasksRest Operator/- rest parameter practiceSpread Operator/- spread operator usageTodo List/- small task manager app with DOMValidation/- input validation (Aadhar, driving license, email, mobile, PAN)Variables/- variable declaration and basic I/O
- Finding elements [linear search]
- Using
Array.prototype.findand manual loops - Demonstrating array methods and element updates
- DOM event listeners for buttons
- Basic form parsing and arithmetic operations
- Handling edge cases like empty input / division by zero
click,change,onloadevent usage- Dynamic style updates (
background color,font-size) - Image source swapping and show/hide toggles
- Updating display value from UI controls
- Counting digits in a number (
DigitCount.js) - Summing even/odd numbers (
EvenSum.js,OddSum.js) - Maximum value from array
- Printing sequences (
NaturalNum,PrintEvenNum,PrintOddNum,PrintTable) - Reverse sequence printing and cumulative sums
- Function with
...argsto collect variable parameter list - Aggregation and flexible call signatures
- Spreading arrays and object literals
- Cloning and extending data without mutation
- Add, remove, and clear list items
- Persisting tasks in browser local state (optional enhancement)
- Using class manipulation for completed state
- Mobile number pattern with regex
- Email format checking (regex validation)
- PAN, Aadhar, and driving license specific value checks
- Immediate feedback for invalid input
- Declaring with
var,let,const - Reading user input with prompt-like UI
- Basic arithmetic operations (e.g., cube calculation)
- ES6+:
let/const, arrow functions, template literals - Modules (
import/export) and code organization - Asynchronous JavaScript:
promises,async/await,fetch - Advanced DOM: event delegation, accessibility, performance
- Data structures:
Set,Map,WeakMap,WeakSet - OOP in JS: classes, prototypes, inheritance
- Testing: Jest or Mocha for unit tests
- Build tools: NPM scripts, bundlers (Webpack/Vite)
- Add
READMEinstructions in each folder for quick run steps - Add comments in JS files describing logic
- Introduce linting (
ESLint) and formatting (Prettier) - Add small test cases or helper logs in each script
This repo is an excellent practical base for beginner-to-intermediate JavaScript. Continue filling the Validation and DOM sub-projects, then expand with async and module-based features for next-level readiness.