Changes

Jump to: navigation, search

Introducing JavaScript Variables

31 bytes added, 14:42, 19 March 2009
Variable Declaration and the Assignment Operator
var myValue = 9, myMessage = "Welcome to JavaScript";
</pre>
<google>ADSDAQBOX_FLOW</google>
In the first line above the variables ''i'', ''j'' and ''k'' are all defined but are not assigned initial values. The second line declared both ''myValue'' and ''myMessage'', initializing the variables with values. In the case of ''myMessage'' the variable is initialized with a string.

Navigation menu