Skip to content
📜

JavaScript Basics

15 projects

Hands-on projects for JavaScript.

  1. 1

    Counter

    Build a button-driven counter that increments, decrements, and resets. Practice DOM selection, event listeners, and updating text content.

    Beginner ~10 min
  2. 2

    Random Quote Generator

    Build a button that shows a random quote from an array. Practice arrays, random indexing, and updating the DOM on demand.

    Easy ~15 min
  3. 3

    Color Changer

    Build a button that changes the background color of a box to a random color. Practice inline style updates and hex color generation.

    Beginner ~10 min
  4. 4

    Tip Calculator

    Build a tip calculator that takes a bill amount and tip percentage, then shows the tip and total. Practice number parsing, functions, and DOM updates.

    Easy ~20 min
  5. 5

    Simple Todo List

    Build a working todo list — add tasks, mark them done, and delete them. Practice arrays, rendering from state, and event delegation.

    Medium ~30 min
  6. 6

    Simple Calculator

    Build a calculator that can add, subtract, multiply, and divide. Practice functions, event handling, and updating the DOM with results.

    Easy ~25 min
  7. 7

    Enhanced Todo List

    Build a todo list with filtering (all, active, completed) and localStorage persistence. Practice array methods, filtering, and browser storage.

    Medium ~30 min
  8. 8

    Weather Lookup

    Build a weather lookup tool that fetches data from a free weather API using async/await. Practice fetch, JSON parsing, and error handling.

    Medium ~25 min
  9. 9

    Stopwatch Timer

    Build a stopwatch with start, stop, and reset buttons using setInterval. Practice timers, state management, and time formatting.

    Easy ~20 min
  10. 10

    Bar Chart Data Visualization

    Build a simple bar chart from an array of data using DOM elements. Practice array iteration, dynamic element creation, and CSS styling from JavaScript.

    Medium ~25 min
  11. 11

    Promise Chain Workflow

    Build a multi-step data pipeline using Promise chains — fetch user, fetch posts, enrich with comments. Practice then, catch, finally, and Promise.all.

    Medium ~35 min
  12. 12

    Async/Await Data Fetcher

    Rebuild the promise pipeline using async/await with try/catch. Practice the modern syntax, concurrent fetches with Promise.all, and a retry wrapper.

    Medium ~35 min
  13. 13

    Custom Event Emitter

    Build a pub/sub event emitter from scratch — on, off, emit, once. Practice the pattern behind Node's EventEmitter and the DOM event system.

    Medium ~35 min
  14. 14

    Finite State Machine

    Implement a finite state machine (FSM) for a turnstile or traffic light. Practice state transitions, guards, and the state pattern used in UIs and games.

    Medium ~40 min
  15. 15

    Mini Module System

    Design and implement a mini ES module loader — define, require, and dependency resolution. An open-ended project to understand how module systems work under the hood.

    Medium ~50 min