var a = 'hello'; var b = new String('hello'); a + b; // 'hello hello' typeof a; // 'string' typeof b; // 'object' a instanceof String; //false b instanceof String; // true a.substr == b.substr; //true a == b; //true; a === b; //false // v8 Object.prototype.toString.call([]) == '[object Array]'; // true;