Changes

Introducing JavaScript Variables

17 bytes added, 13:56, 15 April 2009
no edit summary
== Variable Declaration and the Assignment Operator ==
Varaibles Variables in JavaScript are declared by specifying the name of the variable storage you wish to create prefixed with the token ''var''. For example, to create a variable named myVariable:
<pre>
</pre>
In this instance the variable which had already been declared is asssigned assigned an integer value of 10.
In addition, the variable can be initialized at the same time that it is declared. For example:
</pre>
The above example achieves the same result as the following script sequence:
<pre>