Permalink
Browse files

Adrian

  • Loading branch information...
1 parent 44eec74 commit ca4cfb59b6897da4594fb10ddb608cfc8aa34412 @douglascrockford committed Jun 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lint.html
View
@@ -273,7 +273,7 @@ <h2 id=assignment>=</h2>
<h2 id=eqeq>== and !=</h2>
<p>The <code>==</code> and <code>!=</code> operators do type coercion before
comparing. This is bad because it causes <code>' \t\r\n' == 0</code> to
- be <code>true</code>. This can mask type errors. JSLint cannot reliably determine if == is being used correctly, to it is best to not use <code>==</code> and != and always use the more reliable <code>===</code> and <code>!==</code> operators instead. </p>
+ be <code>true</code>. This can mask type errors. JSLint cannot reliably determine if == is being used correctly, so it is best to not use <code>==</code> and != and to always use the more reliable <code>===</code> and <code>!==</code> operators instead. </p>
<p align="left">If you only care that a value is <i>truthy</i> or <i>falsy</i>,
then use the short form. Instead of </p>
<pre align="left">(foo != 0)</pre>

0 comments on commit ca4cfb5

Please sign in to comment.