get object type js 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