TryBugHunt
All collections
🌱Beginner Friendly ~15 mins

Your First 5 Bugs

The gentlest on-ramp to debugging

Five beginner-friendly bugs with clear symptoms and satisfying fixes. The best place to start if you are new to debugging.

Mixed (Python & JS)Easy5 Challenges

Your Progress

0 of 5 completed

Start Collection

Challenges in this collection

  1. 1

    Sum from 1 to n leaves out n

    sum_range(n) adds up every whole number from 1 to n. Example: sum_range(5) → 15 (1 + 2 + 3 + 4 + 5).

    easy
  2. 2

    isEven says 4 is not even

    isEven(n) returns true when n is even and false when it is odd. Example: isEven(4) → true, isEven(3) → false.

    easy
  3. 3

    Price label crashes on a number

    format_price(amount) returns the amount with a dollar sign. Example: format_price(5) → "$5".

    easy
  4. 4

    First 3 items comes back with only 2

    firstChunk(arr, size) returns the first size items of the array. Example: firstChunk([1, 2, 3, 4, 5], 3) → [1, 2, 3].

    easy
  5. 5

    Settings lookup crashes on a missing key

    get_setting(config, key) returns the value for key, or "default" if the key is not there. Example: get_setting({"theme": "dark"}, "font") → "default".

    easy

More collections to explore