An equal sign is a value assignment. The main problem is the difference between two and three equal signs.The difference between two equal signs and three equal signs in javaScriptIn a word: = convert the type before comparison, = first judge the
In JavaScript, the equal sign is represented by the double equal sign (). if and only when the two operations are equal, it returns true. Today, we will discuss in detail the problem of the equal sign operator, and attach an analysis of the
In JavaScript, the equal sign is represented by the double equal sign (). if and only when the two operations are equal, it returns true. Today, we will discuss in detail the problem of the equal sign operator, and attach an analysis of the
In short, = = equality equivalent, = = = Identity identity.= =, when the value types on both sides are different, type conversion is performed before comparison.= = =, do not type conversion, different types of certain range.Or:= Assignment operator=
We can see this line of code if (typeofitem & quot; string & quot;). We can see three equal signs that have never been written before, maybe it's because my JS technology is still in its infancy, I checked some materials on the Internet and said
This article focuses on two issues:
(1) why sometimes forced conversion succeeds while writing code, but some types cannot? Is this a C ++ kernel rule or a custom rule?
(2) How can I use an integer or string value controlled by the kernel to
Today, I saw situ's article in my blog. I saw this line of code if (typeof item = "string"). I saw three equal signs that I have never written before, maybe it's the reason why my JS technology is still in its infancy. I went to the Internet and
Introduction
If statement should be more than a programmer's statement, many times to do if judgment, if statements generally use double equals to determine whether the two elements are consistent, if it is consistent, then return is true, and then
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.