| 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: D205:E8027:8A457:9E4CA:6977E5E7
accept-ranges: bytes
age: 0
date: Mon, 26 Jan 2026 22:08:39 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210068-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1769465320.573227,VS0,VE208
vary: Accept-Encoding
x-fastly-request-id: 956481890fd79face62f00f327af1c1414699c72
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 22:08:40 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210068-BOM
x-cache: HIT
x-cache-hits: 0
x-timer: S1769465320.800316,VS0,VE225
vary: Accept-Encoding
x-fastly-request-id: ac49ac28f7415f8915caec1c05879bb7e128bc71
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.