Skip to content
💻

Programming Basics

15 projects

Hands-on projects for programming fundamentals.

  1. 1

    Number Guessing Logic

    Build the core logic of a number guessing game — random target, looped input, and hints. Pure logic, no UI.

    Beginner ~15 min
  2. 2

    Simple Calculator

    Build a function-based calculator that takes two numbers and an operator, then returns the result. Covers functions, parameters, and return values.

    Easy ~20 min
  3. 3

    Unit Converter

    Build a set of conversion functions for length and temperature. Practice composing functions and organizing related logic.

    Easy ~25 min
  4. 4

    Todo Data Model

    Design the data model for a todo list — task objects, an array, and functions to add, toggle, and list tasks. No UI, just the model.

    Medium ~30 min
  5. 5

    Password Strength Checker

    Build a function that evaluates password strength based on length, character variety, and common patterns. Practice conditionals and string methods.

    Easy ~25 min
  6. 6

    Word Frequency Counter

    Build a function that counts how many times each word appears in a text. Practice string splitting, objects as dictionaries, and loops.

    Medium ~30 min
  7. 7

    Fibonacci Sequence Generator

    Generate the Fibonacci sequence using both iteration and recursion. Compare the two approaches and understand their trade-offs.

    Medium ~25 min
  8. 8

    Bubble Sort Algorithm

    Implement the bubble sort algorithm and trace each pass to understand how sorting works step by step.

    Medium ~30 min
  9. 9

    Text Adventure Game Logic

    Build the decision-tree logic for a simple text adventure game. Practice conditionals, state management, and branching narratives.

    Medium ~35 min
  10. 10

    Shopping Cart Logic

    Build the core logic for a shopping cart: add items, remove items, calculate totals, and apply discounts. Practice array methods and object manipulation.

    Medium ~35 min
  11. 11

    Singly Linked List

    Implement a singly linked list with insert, delete, and traverse operations. Practice pointers (references) and node-based data structures.

    Medium ~35 min
  12. 12

    Stack and Queue

    Implement a Stack (LIFO) and a Queue (FIFO) with push, pop, peek, and isEmpty operations. Practice the two most fundamental linear data structures.

    Medium ~30 min
  13. 13

    Hash Table

    Build a hash table with a hash function, bucket array, and collision handling via chaining. Practice the structure behind JavaScript objects and Map.

    Medium ~40 min
  14. 14

    Binary Search Tree

    Implement a BST with insert, search, and in-order traversal. Practice recursive tree operations and the divide-and-conquer search property.

    Medium ~40 min
  15. 15

    LRU Cache

    Design and implement an LRU (Least Recently Used) cache that evicts the oldest accessed entry when capacity is exceeded. An open-ended project combining a hash map and a doubly linked list.

    Medium ~50 min