title: Difference between a == 'foo' and 'foo' == a in javascript
body: <p>This is a basic stuff but I found it worth sharing with you all. I observed that a code compression utility changed a code fragement where a condition is written like,</p>
  
  <pre><code>if(document.getElementById('foo').value == '6')
  </code></pre>
  
  <p>to</p>
  
  <pre><code>if('6' == document.getElementById('foo').value)
  </code></pre>
  
  <p>In what way would that help? </p>