What is JavaScript? - Definition
In this article you learn the basics of JavaScript and create your first JavaScript program.
What is JavaScript?
JavaScript is scripting language used for client side scripting. JavaScript developed by Netscape in 1995 as a method
for validating forms and providing interactive content to web site. Microsoft and Netscape introduced
JavaScript support in their browsers.
Benefits of JavaScript
Following are the benefits of JavaScript.
- associative arrays
- loosely typed variables
- regular expressions
- objects and classes
- highly evolved date, math, and string libraries
- W3C DOM support in the JavaScript
Disadvantages of JavaScript
- Developer depends on the browser support for the JavaScript
- There is no way to hide the JavaScript code in case of commercial application
Creating your first JavaScript Program
In the first lesson we will create very simple JavaScript program and run in the Internet Explorer. This example simply displays "Welcome to JavaScript World!" message in the browser.

Test JavaScript program from here.
Here is the code of JavaScript program:
| <html> <head> <title>First Java Script</title> <script language="JavaScript"> function sayhello(){ alert("Welcome to JavaScript World!"); } </script> </head> <body> <p><b>Click the following link to run your first java script example</b></p> <p><a href="javascript:sayhello()">Run JavaScript First Program</a></p> </body> |
Tutorials
- JavaScript method doScroll()
- Popup Window Example in JavaScript
- JavaScript method deleteRow()
- JavaScript Variables and Data types
- Java Script Code of Calendar and Date Picker or Popup Calendar
- JavaScript - JavaScript Tutorial
- Looping In Java Script
- What is JavaScript? - Definition
- Conditional Examples(if - else- switch case) in JavaScript
- Classes-Objects in JavaScript
- String Number Operations in JavaScript
- Conditions In Java Script
- JavaScript - JavaScript Tutorial
- JavaScript Object Oriented Feature
- Form Validation using Regular Expressions is JavaScript
- Navigation with Combo box and Java Script
- Simple Calculator Application In Java Script
- JavaScript Combo Box Validation
- JavaScript createPopup method
- JavaScript appendChild method
- JavaScript add method
- JavaScript addImport example
- JavaScript appendData method
- JavaScript applyElement method Example
- JavaScript blink method
- JavaScript bold method
- JavaScript clear method
- JavaScript clearTimeOut method
- JavaScript click method
- JavaScript cloneNode example
- JavaScript createAttribute method
- JavaScript createCaption method
- JavaScript createComment method
- JavaScript createEventObject method
- JavaScript createTFoot method
- JavaScript createTHead method
- JavaScript deleteCaption method
- JavaScript deleteTFoot method
- JavaScript deleteTHead method
- JavaScript dragDrop method


