Definition: The instanceof 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. Instanceof is a reserved word and cannot be used for anything other than testing an object's type.
Examples:
if (myfield instanceof number)

