1. For basic types such as string, number, etc., there is a difference between == and ===
1) Comparison between different types, == Comparison of "converted into the same type" to see if the "value" is equal. === If the types are different, the result is different
2) Comparison of the same type, directly compare the "value" and the results of the two are the same
2. For advanced types such as Array, Object, there is no difference between == and ===
Compare "Pointer Address"
3. There is a difference between basic types and advanced types == and ===
1) For ==, convert advanced into basic types and perform "value" comparison
2) Because the types are different, the result === is false
The above is a detailed explanation of the difference between == and == in JavaScript introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support to Wulin.com website!