Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP C C++ C# AWS W3.CSS HOW TO BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST TOOLS

JS Tutorial

JS Home JS Introduction JS Where To JS Output JS Syntax JS Operators JS If Conditions JS Loops JS Strings JS Numbers JS Functions JS Timers JS Objects JS Scope JS Dates JS Arrays JS Sets JS Maps JS Iterations JS Math JS RegExp JS Data Types JS Errors JS Debugging JS Style Guide JS Reference JS Projects  New JS Versions JS HTML DOM JS HTML Events JS HTML First

JS Web API

JS Window API JS Fetch API JS JSON JS Web API

JS Advanced

JS Temporal  New JS Functions JS Objects JS Classes JS Asynchronous JS Modules JS Meta & Proxy JS Typed Arrays JS DOM Navigation JS Graphics

Old Technologies

JS AJAX JS jQuery JS JSONP

JS Examples

JS Examples

JavaScript Videos


Share

JavaScript Videos

Learn JavaScript step by step with our free video tutorials on YouTube.

Each video explains one topic from the JavaScript Tutorial. Watch them in order, or pick the topic you need:

  1. 1

    JavaScript Introduction

    What is JavaScript? A short introduction to the language of the web.

    Open

  2. 2

    JavaScript Where To

    Where to put JavaScript: in a <script> element or in an external file.

    Open

  3. 3

    JavaScript Output

    Show data with innerHTML, document.write(), alert() and console.log().

    Open

  4. 4

    JavaScript Statements

    What statements are, and how a program runs them one by one.

    Open

  5. 5

    JavaScript Syntax

    An introduction to the syntax (the writing rules) of JavaScript code.

    Open

  6. 6

    JavaScript Comments

    Write single-line and multi-line comments in JavaScript.

    Open

  7. 7

    JavaScript Variables

    How to store data in variables.

    Open

  8. 8

    JavaScript Let

    Create variables with the let keyword.

    Open

  9. 9

    JavaScript Const

    Create variables with const, so they cannot get a new value.

    Open

  10. 10

    JavaScript Arithmetic

    Add, subtract, multiply and divide numbers with arithmetic operators.

    Open


Free account

Track your progress

XP earned 0 Day streak 0 Spaces 0 League —

New

Learn in Adventure Mode W3Schools Adventure App

Coding fundamentals as bite-sized lessons and challenges.

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.