In Javascript, is it not recommended to use ==, and how to use ===?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/359494/javascript-vs-does-it-matter-which-equal-operator-i-use">Javascript === vs == : Does it matter which &ldquo;equal&rdquo; operator I use?</a>  </p>
</blockquote>



<p>In Douglas Crockford's book Javascript: The Good Parts, it is recommended to not use <code>==</code> at all, due to hard to memorized rules.  Do advanced or seasoned Javascript programmers really not use <code>==</code> or <code>!=</code>?</p>

<p>If so, then I guess we will be using <code>===</code> and <code>!==</code>, but then how do we use them effectively?   Is the most common case comparing a string with number, so we can always do</p>

<pre><code>if (Number(s) == 3) { ... }       // s is a string
</code></pre>

<p>Can <code>Number(s)</code> work in most browsers?  And what are the other common cases to use with <code>===</code>?</p>
