I've looked all the questions and answers on stackoverflow, but couldn't find the simple answer to this.
What is exactly the difference between string and object?
For example, if I have this code:
var a = 'Tim';
var b = new String('Tim');
var a = new String ('Tim');
var b = new String ('Tim');
a is of type string, whereas
b is of type object.
=== includes typechecking and cause string is not an object
a === b will give you a
new String ('Tim') === new String ('Tim') will evaluate to false too, because both are different objects