JavaScript Tutorial

JavaScript is the world's most popular programming language.

JavaScript is the programming language of the Web.

JavaScript is easy to learn.

This tutorial will teach you JavaScript from basic to advanced.


Examples in Each Chapter

With our "Try it Yourself" editor, you can edit the source code and view the result.

<p id="demo"></p> is common html code for all topics in this site.

NOTE: In examples for this site, If you are using "document.getElementById('demo').innerHTML" but <P>tag with id ="demo" is not added and having error than add <p id="demo"></p> in HTML.

EXAMPLE ❯


Why Study JavaScript?

JavaScript is one of the 3 languages all web developers must learn:

   1. HTML to define the content of web pages

   2. CSS to specify the layout of web pages

   3. JavaScript to program the behavior of web pages


Commonly Asked Questions

      How do I get JavaScript?
     Where can I download JavaScript?
   Is JavaScript Free?

You don't have to get or download JavaScript.

JavaScript is already running in your browser on your computer, on your tablet, and on your smart-phone.

JavaScript is free to use for everyone.


Learning Speed

In this tutorial, the learning speed is your choice.

Everything is up to you.

If you are struggling, take a break, or re-read the material.

Always make sure you understand all the "Try-it-Yourself" examples.

The only way to become a clever programmer is to: Practice. Practice. Practice. Code. Code. Code !