I know the meaning of ===
: it will check whether the operands are identical or not,so
1 === '1'
will givefalse
and1 == '1'
will givetrue
,
But typeof 1
is number
and typeof '1'
is string
, so how is JavaScript comparing 1 == '1'
? Are there any conversions happening? If so, which ones?