160. Type coercion

변지영·2022년 2월 15일
0

Type coercion [ koʊˈɜːrʒn ] '=='

: converting a certain type to another type.

All languages have type coercion.

In javascript,
== : coercion
=== : compare two values.

Javascript coerces 1 to equal true.
if(1)


x y == ===


x y == === object.is

0개의 댓글