find type of object in javascript 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