25.
What is the result of the following comparison? 5 == '5'
true
false
undefined
null
Correct: A
In JavaScript, the == (equality) operator compares the values of two operands, and if they are deemed equal, it returns true. In the given example, the number 5 is compared with the string '5'. JavaScript's type coercion comes into play here, where the string is implicitly converted to a number before the comparison. Since both operands have the same numeric value, the comparison evaluates to true.