Why does the expression ["text"] == ["text"]
evaluate to false
in JavaScript?
I intuitively expected it to be true, since the two arrays are identical. Is the JS engine comparing references to two different objects, and thus returning false, instead of comparing the contents of the arrays?