Closed yuezk closed 7 years ago
I think when adding two arrays, its toString method is called first, and then toString calls join. As when we adding two objects, it prints [object Object][object Object].
toString
join
[object Object][object Object]
Thanks for contributing!
I think when adding two arrays, its
toString
method is called first, and thentoString
callsjoin
. As when we adding two objects, it prints[object Object][object Object]
.