JavaScript Tutorial

JavaScript is the most popular programming language in the world.

JavaScript is a programming language that belongs to the Web.

JavaScript is easy to learn.

This tutorial covers both basic and advanced JavaScript tutorials.

Examples in each chapter

Through our 'Try It Yourself' editor, you can modify all the examples and view the results.

Try It Yourself

Tip:We recommend that you learn this tutorial in the order of the menu on the left.

Learn through examples

Examples are better than words. Instances are easier to understand than text explanations.

This tutorial supplements all the content with corresponding 'Try It Yourself' examples.

JavaScript Example

Tip:If you can test all the examples, you will learn a lot about JavaScript in a short period of time.

Why learn JavaScript?

JavaScript is one of the three languages that web developers must learn:

  • HTML Define the content of the web page
  • CSS Specify the layout of the web page
  • JavaScript Programming web behavior

This tutorial provides knowledge about JavaScript, as well as how JavaScript works with HTML and CSS.

This tutorial covers every version of JavaScript:

  • Original JavaScript ES1 ES2 ES3 (1997-1999)
  • First Major Revision Edition ES5 (2009)
  • Second Major Revision Edition ES6 (2015)
  • All Annual Enhanced Versions (2016, 2017, 2018, 2019, 2020, 2021)

Learning Speed

In this tutorial, you can freely control the learning speed.

It all depends on you.

If you encounter difficulties, take a break and then read the material again.

Always make sure you understand the examples and exercises in 'Try It Yourself'.

JavaScript Reference Manual

CodeW3C.com Provides and Maintains a Complete JavaScript Reference Manual, Including All HTML DOM and Browser Objects.

This reference manual includes examples of all objects, properties, and methods and is continuously updated according to the latest web standards.

Complete JavaScript Reference Manual

JavaScript Quiz

Test Your JavaScript Skills at CodeW3C.com!

Start the JavaScript Quiz