The difference between =, == and === in javascript

=  Assign a value to the variable, such as a=2;
==  Determine whether they are equal, if the types are not the same, internal conversion will be done.
For example, "1111" == 1111, which is equivalent to Number("1111") == 1111.
=== Same as == , no type conversion will be done during comparison.

Guess you like

Origin blog.csdn.net/qq_43692768/article/details/112441817