20.
Which of the following relational expressions will evaluate to true in JavaScript?
x > y
x = y
x <= y
x && y
Correct: A, C
Relational expressions in JavaScript compare values and return a boolean result. The examples A1 (x > y) and A3 (x <= y) are both valid relational expressions that can evaluate to true. A1 will return true if the value of x is greater than the value of y. A3 will return true if the value of x is less than or equal to the value of y. A2 (x = y) is using the assignment operator and will not be a valid relational expression. A4 (x && y) is a logical expression, not a relational expression.