There is no such thing as an array type. Arrays belong to objects. When judging, if you use ===, you can
Use typeof first to print the parameters you want to compare, and judge first. Type
Judge their values
If all are equal, true will be returned. Generally, no one compares arrays, which is more troublesome
==, it is a simple comparison of values. As for the type, it does not matter, that is, 1 of the number type and 1 of the string type, the values are equal
There is no such thing as an array type. Arrays belong to objects. When judging, if you use ===, you can
Use typeof first to print the parameters you want to compare, and judge first. Type
Judge their values
If all are equal, true will be returned. Generally, no one compares arrays, which is more troublesome
==, it is a simple comparison of values. As for the type, it does not matter, that is, 1 of the number type and 1 of the string type, the values are equal
It is recommended that you take a good look at the usage of ""====""
=== It means that all are equal, and the values and types are equal, it is called congruent.