7.
Which of the following operators is used to compare two values for equality in JavaScript?
==
<
&&
||
Correct: A
The equality operator (==) is used to compare two values for equality in JavaScript. It checks if the values are equal, regardless of their data types. For example, 1 == '1' would return true because the values are considered equal.