How to check if two lists have the same content in JavaScript [duplicate]

let list1 = ["abc", 85, true];
let list2 = ["abc", 85, true];

if (list1 == list2) {
  document.write("Works");
}
else {
  document.write("Doesn't work");
}

Both arrays are literally the same in every way, yet the program writes out

“Doesn’t work”

How do I check if they are the same?

Thanks in advance.

I tried doing != and === instead of ==, but it still wrote out doesn’t work.