C.15. == and !=
The == and != operators do type coercion before comparing. This is bad because
it causes ' \f\r \n\t ' == 0 to be true. This can mask type errors.
When comparing to any of the following values, always use the === or !==
operators, which do not do type coercion:
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial