The difference between JavaScript = = and = = =

Source: Internet
Author: User

1, for the basic type, such as string,number = = and = = = There is a difference

1) Comparison of different types, = = Comparison of "converted to the same type of value" to see if "value" is equal, = = = If the type is different, the result is unequal 2) the same type comparison, direct "value" comparison, the results of the same 2, for advanced types, such as Array,object = = and = = = There is no difference between the "pointer address" comparison 3, the underlying type and the advanced type, = = and = = = is the difference between 1) for = =, the advanced conversion to the underlying type, the "value" Comparison 2) because the type is different, = = = The result is False

The difference between JavaScript = = and = = =

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.