JavaScript Programmer’s Reference may be more reliable in (Web site counters)
JavaScript Programmer’s Reference may be more reliable in some implementations than: if(a != null){ someCode} Example code: // Force a string comparison myResult = (a+'’ == b+'’); alert(myResult); // Force a numeric comparison myResult = (a-0 == b-0); alert(myResult); // Force a boolean comparison myResult = (!a == !b); See also: Equal to (==), Equality operator, Expression, Identically equal to (===), NOT Equal to (!=), NOT Identically equal to (!==), Relational expression, Type conversion Cross-references: ECMA 262 edition 2 section 11.9 ECMA 262 edition 3 section 11.9 Wrox Instant JavaScript page 39 Equality operator (Definition) An operator that tests for equality or not. Availability: Property/method value type: ECMAScript edition 2 Boolean primitive There are two equality operators: . The == operator tests for equality. . The != operator tests for inequality. Equality operators deal exclusively with the test for the operands being equal to one another. They yield a true or false result and are generally considered as part of the relational operator set since they are most often used in the same circumstances. Testing two operands for equality follows these basic rules:
Note: If you are looking for cheap and reliable webhost to host and run your web application check Vision coldfusion web hosting services