JavaSctipt js the distinction between "==" and "===" of

== Denotes equal (equal value, even after the automatic conversion equal value, regarded as equal)

===It represents an absolute equal (equal type and value must not be converted)

If js when comparing =='ll do first type conversion, and then determine the size of worth, if it is ===the type and value must be equal.

Here Insert Picture Description

Published 79 original articles · won praise 89 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_39141486/article/details/103586544