title: Equality in Python and JavaScript
body: <p>Can someone explain to me the backstage of how implicit coercion in JavaScript works in the following example? Are there any advantages of such behavior? To make myself clear I also show how this would work in Python. Looks pretty simple, but I still do not get the implicit coercion after reading YDNJS up &amp; going.</p>
  
  <pre><code>// JavaScript:
  var a = [1,2,3];
  var b = [1,2,3];
  a == b    // false!!!
  
  var myArr = [12, "string", true];
  var myArr2 = [12, "string", true];
  myArr == myArr2   // false!!!
  
  ## Python:
  a = [1,2,3]
  b = [1,2,3]
  a == b    ## True
  </code></pre>