how to find the type of an object code example
Example: get type of object javascript
var obj = new String();
var str = "this is string";
typeof obj; // returns object
typeof str; // returns string
var obj = new String();
var str = "this is string";
typeof obj; // returns object
typeof str; // returns string