Practise JavaScript, Python and SQL, one test at a time

Coding challenges
fix it, write it, pass it.

Fix broken code or write a function, then press "Run tests". The tests run safely in your own browser. Stuck? Ask for a hint. Sign in to save your progress, points and badges.

  • 25challenges
  • 4challenge types
  • 420points to earn

Python and SQL run in your browser too. PHP and Laravel exercises will follow.

Debugging

The code is almost right. Find the bug, fix it and make every test pass.

Write a function

Start from an empty function and write it yourself. The tests tell you when you are done.

Python

Write Python functions and run them in your browser. Nothing is installed and nothing leaves your device.

SQL

Write SELECT queries against a small practice database that lives in your browser.

Badges to earn

Badges are worked out from your solved challenges. Sign in to collect them.

First fix Solved your first challenge. Locked
Five down Solved 5 challenges. Locked
Bug hunter Solved every debugging challenge. Locked
Self-reliant Solved 3 challenges without hints or the model answer. Locked
Hard mode Solved a hard challenge. Locked

How a challenge works

  1. 1

    Read the task

    Each challenge explains what the function should do, with the tests it must pass.

  2. 2

    Write or fix the code

    Edit the code in the editor. Nothing to install: it all runs in your browser.

  3. 3

    Run the tests

    See exactly which tests pass and which fail, and fix them one by one.

  4. 4

    Earn points and badges

    Solve a challenge with fewer hints to keep more of its points.