Toolpuffin

    Loading...

    Up and down to choose, Enter to open, Esc to close.

    A small course in 8 short lessons on the basics of JavaScript. You learn output, variables, numbers, choices with if, loops, functions, arrays and objects. Write code, run it in your browser and check your answer.

    Features

    • 8 short lessons, from your first line to objects
    • Run your code and see the output at once
    • Check my answer, a hint and the full answer for every lesson
    • Your progress is remembered in this browser

    How to use Learn JavaScript

    1. Read the lesson and the task.
    2. Type your answer and watch the result.
    3. Use the hint or the answer if you are stuck.
    4. Go to the next lesson.

    Frequently asked questions

    Is JavaScript the same as Java?

    No. They are two different languages that only share part of the name. JavaScript is the language of web pages.

    Is it safe to run my code here?

    Your code runs in your own browser, in a separate worker that cannot reach the page. If it runs longer than 2 seconds it is stopped.

    Can I change the page with this code?

    Not in this course. The code can only write text to the output. Learn JavaScript: Part 2 teaches how to change a web page.

    Is my code saved?

    Only which lessons you finished is saved, in this browser. The code you type is not stored or sent anywhere.

    Guides

    Related tools