Definition: The typeof statement tests if an object is of a particular type. It evaluates to number, string, boolean, object, function, or undefined. Typeof is a reserved word and cannot be used for anything other than testing an object's type.
Examples:
if (typeof myfield == 'string')
