Difference between revisions of "JavaScript Variable Types"

From Techotopia
Jump to: navigation, search
(New page: JavaScript supports five different types of variable. These variable types are outlined in the following table together with a brief description of each type: <table> <tr> <th>Type</th><t...)
 
Line 5: Line 5:
 
<th>Type</th><th>Example</th><th>Description</th>
 
<th>Type</th><th>Example</th><th>Description</th>
 
</tr>
 
</tr>
 +
<tr>
 +
<td>'''number'''<td>1, -31, 0.023<td>The number variable holds any type of number, either an integer or a real number.</td>
 
</table>
 
</table>

Revision as of 19:51, 11 April 2007

JavaScript supports five different types of variable. These variable types are outlined in the following table together with a brief description of each type:

TypeExampleDescription
number1, -31, 0.023The number variable holds any type of number, either an integer or a real number.