2012년 5월 3일 목요일

JavaScript Difference between == and ===

=== and !== are strict comparison operators

0==false // true
0===false // false, because they are of a different type
1=="1" // true, auto type coercion
1==="1" // false, because they are of a different type

Difference between == and === in JavaScript [closed]