Content-Length: 3600 | pFad | https://dorey.github.io/JavaScript-Equality-Table/

JS Comparison Table

== (negated: !=)

When using two equals signs for JavaScript equality testing, some funky conversions take place.

=== (negated: !==)

When using three equals signs for JavaScript equality testing, everything is as is. Nothing gets converted before being evaluated.

A standard IF statement. If(value) {/*- green -*/} else { /*- white -*/ }

Note: This row does not match up with any of the rows in the other table.

Moral of the story:

Always use 3 equals unless you have a good reason to use 2.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://dorey.github.io/JavaScript-Equality-Table/

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy