Learn to Code

Learn to code with JS Hero, the tutorial with interactive exercises. Learn JavaScript.

On each page you will find a lesson and a programming task. The task can be answered directly on the page. And you are immediately told if you have solved the problem correctly or if you made a mistake.

The title bar on each exercise page is red. Read the lesson and the task thoroughly. Write the solution into the text field and start the tests. If you made a mistake, a test is red and the title bar remains red. The red test tells you what you did wrong. Correct the error and restart the tests. If all tests are green, you will receive a success message and the title bar will turn green.

Happy coding!

Start