21.
Which of the following operators is used for equality comparison in JavaScript?
==
=
!=
++
Correct: A
The equality comparison operator in JavaScript is ==. It is used to compare two values and check if they are equal. For example, 5 == 5 evaluates to true, while 3 == 7 evaluates to false. The operator >= is used for greater than or equal to comparison, the operator != is used for inequality comparison, and the operator ++ is used for incrementing a value by 1.