 <p>The equality operator will attempt to make the data types the same before making the comparison. On the other hand, the identity operator requires both data types to be the same as a prerequisite.</p> <p>There are quite a few other posts out there similar to this questions. See:</p> <p><a href="http://stackoverflow.com/questions/80646/how-do-the-equality-double-equals-and-identity-triple-equals-compariso">How do the PHP equality (== double equals) and identity (=== triple equals) comparison operators differ?</a> (has a nice comparison chart)<br /> <a href="http://stackoverflow.com/questions/359494/javascript-vs-does-it-matter-which-equal-operator-i-use">Does it matter which equals operator (== vs ===) I use in JavaScript comparisons?</a></p> <p>In practice, the identity operator comes in really handy when you want to be certain that a boolean value is true or false since...</p> <pre><code>1 == true =&gt; true true == true =&gt; true 1 === true =&gt; false true === true =&gt; true </code></pre>