I\'ve been playing around with arrays in JavaScript and cannot figure out why this happens:
console.log(0 == []) //true
You are trying to compare object with an integer, so your object is implicitly typecasted to equivalent integer value that is 0
console.log([] == []) //false
as two objects are never equal