title: Why is [1,2,3] <= [1,2,3] true in javascript?
body: <p>Since arrays are essentially objects in javascript, each array here is a pointer to a location in memory; hence, both == and === will give false. Similarly, &lt; and > will also give false. However, &lt;= and >= gives true when two arrays with the same items in the same order are compared. I would appreciate it if someone could explain what's going on under the hood here.</p>