Why is [] !== [] in JavaScript? [duplicate]
This question already has an answer here: Why isn't [1,2,3] equal to itself in Javascript? 6 answers Why is [] !== [] in JavaScript? I read through https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness but I could not find anything that explains this. Edit: I don't think this question or this question is an exact duplicate of mine. It asks about the == operator which just behaves crazy. The answer is an answer to my question but it's not the same question. That does a reference check on the two array literals to see if they are the same instance. The fact