This JavaScript tutorial helps beginners and professionals to learn JavaScript easily.

What is JavaScript

JavaScript is a dynamic computer programming language. It is object-based scripting language i.e. lightweight and cross-platform.

We can make our web page more lively and interactive, with the help of JavaScript.

It was created by Brendan Eich at Netscape in 1995.

It is used to create interactive websites. It is mostly used for:

  • Client-side validation.
  • It has Dynamic drop-down menus.
  • It Displaying date and time.
  • Validate user input in HTML form before sending the data to a server.
  • Build forms that respond to user input without accessing a server.
  • Open and close new windows or frames.
  • Displaying popup windows and dialog boxes.(like alert dialog box, confirm dialog box prompt dialog box)
  • Build small but complete client side programs.
  • Displaying clocks etc.
  • Mobile application and game development.

Features of Javascript

  • JavaScript is an object-based scripting language.
  • It is case sensitive language.
  • It is light weighted.
  • Every statement in JavaScript must be terminated with semicolon (;).

Advantages of Javascript

  • JavaScript is an interpreted language. It requires no compilation process so no compiler is required. The browser interprets JavaScript as HTML tags.
  • JavaScript is relatively easy language. Any person can learn it very easily. It is use to develop dynamic and attractive websites.
  • JavaScript is executed on the client-side reduces the demand on the website server.
  • It provides conditional checking, loops and branching facilities that can be executed in a web pages.
  • JavaScript is relatively fast to the end user. They don’t have to wait for a page reload to see if they have forgotten to enter something.
  • Extended functionality to web pages. We can use JavaScript to include such items as drag-and-drop components and sliders to give extended functionality to our site visitors.

JavaScript Example with Online Editor

We have given online editor option with each JavaScript example. So, you can edit any example and see the changed output.



To learn JavaScript you must have the knowledge of computer fundamentals only.


This JavaScript tutorial is written to help beginners and professionals both.

Index Title
Tutorial Javascript Example
Tutorial Javascript comment
Tutorial Javascript Variable
Tutorial Javascript Data Types
Tutorial Javascript Operators
Tutorial Javascript If Else
Tutorial Javascript Switch Statement
Tutorial Javascript loop
Tutorial JavaScript Function
Tutorial Javascript Object
Tutorial Javascript array
Tutorial Javascript String
Tutorial Javascript Date
Tutorial Javascript Math
Tutorial Javascript Number
Tutorial Javascript Dialog Box
Tutorial Javascript Window Object
Tutorial Javascript Document Object
Tutorial Javascript Event
Tutorial Javascript Cookies
Tutorial Javascript getElementByID
Tutorial Javascript Forms Validation
Tutorial Javascript Email Validation
Tutorial Javascript Password Validation
Tutorial Javascript Re-Password Validation
Tutorial Javascript Page Redirect
Tutorial Javascript Print

Pin It on Pinterest

Share This