JS = = = = = = Difference (two equals and three equals)

Source: Internet
Author: User
JS = = = = = = = Difference [to] 1, for String,number and other basic types, = = and = = = There is a difference between 1) different types of comparison, = = Comparison of "conversion to the same type of value" see "Value" is equal, = = = If the type is different, The result is unequal 2) compared to the same type, direct "value" comparison, the results are the same as 2, for Array,object and other advanced types, = = and = = = no difference in the "pointer address" comparison 3, the basic type and the advanced type, = = and = = = There's a difference. 1) for = =, convert advanced to underlying type, make "value" Comparison 2) because the type is different, = = = The result is False

Original: http://blog.sina.com.cn/s/blog_4b32835b01014iv9.html

JS = = = = = = Difference (two equals and three equals)

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.