Definition: The typeof statement tests if an object is of a particular type. It evaluates to true if the object is that type and false if it is not. Typeof is a reserved word and cannot be used for anything other than testing an object's type.
Examples:
if (typeof myfield == 'string')

