Computer Science, asked by madhantk, 6 months ago

what is the output of this strict equality operator? 5==="5"​

Answers

Answered by itzdreamer44
1

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.

Answered by sujiitsingh567
0

If one operand is the number 5 and the other operand is the string "5", the standard equality operator will return true, but a strict equality operator will return false because they are not of the same type. It can be difficult to compare two operands at times.

What happens when the loose equality operator == is used?

Because the loose equality operator == converts the operands to the same type (if they are not already) and then compares their values. This is known as type coercion (when two values are compared after attempting to convert them into a common type).

The strict equality operator (===) determines whether two operands are equal and returns a Boolean value. In contrast to the equality operator, the strict equality operator always treats operands of different types as distinct.

To learn more about the output of this strict equality operator

https://brainly.in/question/6190006

#SPJ2

Similar questions