js> [] [] js> Array.prototype [] js> [].toString == Array.prototype.toString true js> [].toString === Array.prototype.toString true
That is, the toString method of the objects is identical. Of course, for Array.prototype.toString () (which is actually what calls the second line), this object for the toString object does not contain properties similar to an array, and therefore gives [] .
source share