Free tool

JavaScript practice

Pick an exercise, write the function, run the tests. When a test fails you get a hint based on what your code returned, and more hints one at a time if you want them.

How it works

Running. When you press Run tests, your code is sent to a Web Worker, a background thread in your own browser. The worker calls your function with each test input and sends the results back. If it takes more than 2 seconds, the page stops the worker.

Grading. Each result is compared with the expected value. Arrays and objects are compared item by item, and numbers allow for tiny rounding differences.

Hints. The box under the editor picks one hint by rules, in this order: code that cannot run, an error thrown by your function, a known mistake for this exercise (for example a FizzBuzz that checks 3 before 15), a general pattern such as a missing return, then the next step of the exercise's own hint list. The Get a hint button shows that list one step at a time. No AI model is involved and nothing leaves your browser.

Saving. Your code and solved exercises are kept in localStorage for this site, on this device. Stuck? Read how to get unstuck. Sources checked 4 December 2026.

New to error messages?

A plain guide to the three errors you will see most.