34,333
edits
Changes
→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>