| CARVIEW |
Select Language
HTTP/2 301
server: GitHub.com
content-type: text/html
location: https://dorey.github.io/JavaScript-Equality-Table/
x-github-request-id: 7A02:320BC:7F1F1:8FA7B:6977CA27
accept-ranges: bytes
age: 0
date: Mon, 26 Jan 2026 20:10:16 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210088-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1769458216.067062,VS0,VE221
vary: Accept-Encoding
x-fastly-request-id: 117357fe805dc62f8f4136614bad0c586d45f786
content-length: 162
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Tue, 13 Jan 2015 02:02:07 GMT
access-control-allow-origin: *
etag: W/"54b47c9f-a0d"
expires: Mon, 26 Jan 2026 18:20:05 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 38EA:2D5024:67803:749CE:6977ADFD
accept-ranges: bytes
age: 0
date: Mon, 26 Jan 2026 20:10:16 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210088-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1769458216.307885,VS0,VE224
vary: Accept-Encoding
x-fastly-request-id: cc033dfeac0273841310f8a2818762fc00d50b39
content-length: 1152
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.