In js, "= = =" is called the strict operator, "= =" is called the equality operator.The difference is that the equality operator ( == ) compares two values for equality, and the strict equality operator ( === ) compares whether they are "the same
First, understand the data types in JS:JS data types can be divided into 2 categories, that is, the basic data types and reference types.The underlying data types are divided into: Undefined, null, String type, Number type, Boolean type.Reference
1. Equal = = and unequal!=
Convert operands first and then compare equality
Equality and inequality follow the following rules when converting different data types:
1.1 If one operand is a Boolean, convert it to a numeric value---False to a
The equality operator = = and the equivalent operator, = = =, can be used to determine whether the data is equal, return a Boolean type of data, and the = = operator when comparing, the requirement type is not necessarily the same, the value is
= = and = = Definition==and === Although they are all relational expression operators, they are defined differently:
==: Called the equality Operator (equality Operator), which is used to detect the equality of two operations, where the
Comparative judgment
Comparison judgment is to compare two values and return a Boolean value that indicates whether the comparison condition is met. JavaScript provides a total of 8 comparison operators, and here's the difference between the strict
In the past two days, when I use the equal operator of C # to overload the following problem, it will lead to an endless loop. Do you know if there is a better solution? Because it is necessary to determine whether the parameter is null, it will use
xTable of Contents [1] identity [2] equal [3] greater than [4] less than the preceding wordsThe relational operator is used to test the relationship between two values, and returns TRUE or false depending on whether the relationship exists, and the
"= = =" is called the strict operator, and "= =" is called the equality operator.The operation rules for strict operators are as follows,(1) Different types of valuesIf the two values are of different types, return false directly.(2) Primitive type
http://blog.csdn.net/wuchen_net/article/details/5409327Http://www.cnblogs.com/chen0720/p/3209398.html1. ReferenceEquals, = =, EqualsEquals, = =, referenceequals can be used to determine whether an individual of two objects is equal.A)
Arithmetic operatorsAddition operator (+), subtraction operator (-), Division operator (/), multiplication operator (*)You can also combine a variety of operations: 1+4*5To avoid ambiguity, separate operations can be separated by parentheses: 1+ (4*5
Basics of T-sql: Beyond basic Level 6: Using case expressions and IIF functionsGregory larsen,2016/04/20 (First edition: 2014/04/09)The seriesThis article is part of "Stairway series: The cornerstone of T-sql: Beyond the Basics"From his stairway to
Same point:Two operators can be used to compare two values for equality, allow manipulation of any type of operand, or return true if the operands are equal, otherwise false.Different points:the "= = =" operator, also known as the strict equality
Reprint: https://www.cnblogs.com/weiqinl/p/9049745.htmlThere are two ways to compare JavaScript: the strict comparison operator and the conversion type comparison operator.Corresponds === , and, in the equality operator !== == != .Give me a chestnut
The ABS method returns the absolute value of a number.
The ACOs method returns the inverse cosine of a number.
The anchor method adds an HTML anchor point with the NAME property at both ends of the object's specified text.
The Asin method returns
Equality operators
Equality and inequalityWhen converting different data types, the equality and not the wait operators follow the basic rules below:
If one of the operands is a Boolean value, convert it to a numeric--false
Chapter III Basic Concepts
Everything in ECMAScript (variables, function names, and operators) is case-sensitive.
Identifiers are the names of variables, functions, attributes, or parameters of a function.
The constituent rules for
1, for String,number and other basic types, = = and = = = There is a difference1) 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 not
Beginners JavaScript, = = and = = Some confused, check the information, found a very good article, reproduced, but also as their own collectionOriginal address: http://blog.csdn.net/wang171838/article/details/8554305, really very good, the following
The relational operator is used to compare two values and return a Boolean value. Relational operators include greater than (>), less than (=), and less than or equal (3;1. Attempt to convert two operators to numbers;2. If all two operators are
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.