+ 3
Recognise among (=),(==),(===) in JavaScript
JavaScript
2 Antworten
+ 14
= (Simple Assignment) :
Assigns values from the right side operand to the left side operand
Eg: C = 2 + 3 will assign the value of 2 + 3 into C
== (Equal) :
Checks if the value of two operands are equal or not, if yes, then the condition becomes true.
Eg: 0 == false // true
=== (strict comparison) :
* equality without type coercion *. Using this operator, the values must be equal in type as well.
Eg: 0 === false // false, because they are of a different type.
Extended :
null == undefined // true
null === undefined // false
+ 5
'=' assignment operator
'==' is equal to
'===' is strictly equal to