When the arrays are equal in js?

a = [1, 2, 3];
b = [1, 2, 3];

console.log(a == b); // false
April 19th 20 at 12:27
2 answers
April 19th 20 at 12:29
Solution
April 19th 20 at 12:31
Solution
When they reference the same array. The creation of two seemingly identical array does not lead to equality, because the links are different

Find more questions by tags JavaScript