JavaScript Tutorial

JavaScript Tutorial for beginners to learn JavaScript online for free.

JavaScript is a client-side scripting language that is used to make web pages interactive. It is lightweight, free to use, easy to learn and cross-platform supported by all web browsers.

This tutorial covers JavaScript basics, functions, objects, array, strings with examples. By using JS we can do DOM (HTML elements) manipulation, event handling, client-side validation as well.

In this online JavaScript training course, you will use JavaScript in HTML & other applications. You will also find useful exercise, codes, Interview Questions to enhance your knowledge at the end of the most chapters.

JavaScript Introduction

JavaScript is a lightweight programming language that is used to make web pages interactive. It is an interpreted programming language that supports object-oriented properties as well. JavaScript is one of the three…

JavaScript Basic Program

This basic javascript program is used to output a “Hello World!!” message in the browser. Javascript code must be inserted inside <script> tag within the HTML file. In the next tutorial, we…

JavaScript Events

DOM (Document Object Model): The Document Object Model (DOM) is a programming API for HTML and XML documents. It defines the logical structure of documents and the way a document is accessed…

Constructor Functions in JavaScript

JavaScript constructor functions are like blueprints for creating objects with similar properties and behaviours. They help organize and streamline the process of creating multiple instances of objects. Understanding constructor functions is fundamental…

JavaScript Environment Setup

In this tutorial, we will learn how to set up a development environment for writing and running JavaScript code efficiently using a browser and a code editor. You don’t need to install…

JavaScript Comments

Learn how to use single-line and multi-line JavaScript comments to explain code, disable lines, and improve readability.

JavaScript Console

Learn how to use the JavaScript Console for debugging and inspecting code using console.log() and others console methods.

JavaScript Variables

Variables are containers for storing data values in JavaScript. They allow you to store numbers, strings, objects, or even functions for later use or manipulation. In modern JavaScript, there are three ways…

JavaScript Data Types

Learn about JavaScript data types including types like strings, numbers, and booleans, as well as objects and arrays, with examples.

JavaScript Type Conversion

Learn about JavaScript Type Conversion with examples of implicit and explicit type conversion using String(), Number(), Boolean() etc

JavaScript HTML DOM EventListener

window.addEventListener: The window.addEventListener method is a way to listen for events in the browser, such as user interactions (clicks, keystrokes), page load events, and more. This method attaches an event handler to…