Javascript

A Javascript is a script or program that runs within an HTML document that allows you to make your web pages more dynamic and interactive.

A variable is a location in which you may store values that are used within your Javascripts. Variables have names, usually referred to as identifiers. Identifiers should begin with a character from the alphabet and the remainder of the identifier can be any alpha or numeric character. Some examples are A, b, Solution, X1, and y2.

An example of a Javascript is given below.

<SCRIPT LANGUAGE="Javascript">
var a = 5, b = 7;
var sum = a + b;
document.write("<FONT COLOR=FF0000>The sum of </FONT>", a, " and ", b, " is ", sum);
</SCRIPT>

OUPUT
The sum of 5 and 7 is 12