COMPUTER NETWORKS AND COMMUNICATIONS
INTERNET AND WEB TECHNOLOGIES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
==
|
|
>
|
|
===
|
|
<=
|
Detailed explanation-1: -= is called as assignment operator, == is called as comparison operator whereas It is also called as comparison operator. = does not return true or false, == Return true only if the two operands are equal while === returns true only if both values and data types are the same for the two variables.
Detailed explanation-2: -The equality operator (==) is used to compare two values or expressions. It is used to compare numbers, strings, Boolean values, variables, objects, arrays, or functions.
Detailed explanation-3: -The strict equality ( === ) operator checks whether its two operands are equal, returning a Boolean result. Unlike the equality operator, the strict equality operator always considers operands of different types to be different.
Detailed explanation-4: -The == (equality) and != (inequality) operators check if their operands are equal or not. Value types are equal when their contents are equal.
Detailed explanation-5: -In the case of equality comparison, we use === operator, and in the case of inequality comparison, we use !== operator. It returns either true or false. The === operator compares operands and returns true if both operands are of the same data type and have some value, otherwise, it returns false.