Changes

Jump to: navigation, search

JavaScript Variable Types

52 bytes added, 18:53, 20 April 2007
The JavaScript ''typeof'' Operator
== The JavaScript ''typeof'' Operator ==
the The flexible nature of JavaScript variable types (JavaScript is termed a ''loosely typed language'') can lead to confusion as to the particualr type of a variable at any given time in a script. To address this concern JavaScript provides the ''typeof'' operator. The ''typeof'' operator returns the current variable type of the specified variable. For example the following script:
<pre>

Navigation menu