String Object String type value - , '===' false
, .
var obj = new String('0');
var str = '0';
'===', ,
Strict equality compares two values for equality. Before matching, no value is converted to any other value. If the values are of different types, the values are considered unequal. More details
So when you use '===' (strictly compare), it returns false
Check this answer to see the difference between a string object and a string type value. The difference between a string and a javascript string object
source
share