Changes

Jump to: navigation, search

Introducing JavaScript Variables

224 bytes added, 18:25, 11 April 2007
Variable Declaration and the Assignment Operator
In this instance the variable which had already declared is asssigned the to contain an integer value of 10.
 
In addition, the variable can be initialized at the same time that it is declared as follows:
 
<pre>
var myVariable = 10;
</pre>
 
which is identical to the following sequence:
 
<pre>
var myVariable;
myVariable = 10;
</pre>

Navigation menu