What is the difference between == and ===

What is the difference between == and ===?

== is the equality operator and only requires that the left and right values ​​are equal to return true

=== is a strict operator that requires the values ​​and types of the left and right sides to be equal to return true

Guess you like

Origin blog.csdn.net/zhongheng310/article/details/114197848