Discover the object type and constructor function of any object in a script using the typeof operator and constructor property:
var myvar = "hello"; alert( typeof myvar ); alert( myvar.constructor );
Arguments – work with function arguments.
Array – work with array data.
Audio – work with sound and audio.
Boolean – work with boolean values.
Date – work with time and dates.
Document – work with the entire document tree.
Element – work with elements.
Function – work with the function constructor.
Global – work with the Global object.
History – work with the user’s navigation history.
Math – work with mathematics and calculations.
Navigator – work with the user’s browser software.
Number – work with number data.
Object – work with custom objects( + oop and class development ).
RegExp – work with regular expressions.
Screen – work with the user’s screen.
Storage – work with persistent data. String – work with string data.
Window – work with the container of the document. XMLHttpRequest – work with Ajax data transmission.