+ 3

Recognise among (=),(==),(===) in JavaScript

JavaScript

9th Jul 2017, 2:20 PM
Muhamad Alalian
Muhamad Alalian - avatar
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
9th Jul 2017, 2:34 PM
Dev
Dev - avatar
+ 5
'=' assignment operator '==' is equal to '===' is strictly equal to
9th Jul 2017, 2:29 PM
Vaibhav Tandon
Vaibhav Tandon - avatar