19.
Which of the following is a relational expression in JavaScript?
x == y
x + y
x !== y
x || y
Correct: A, C
Relational expressions in JavaScript are used to compare values and return a boolean result. The examples A1 (x == y) and A3 (x !== y) are both valid relational expressions. A1 will return true if the values of x and y are equal, and false otherwise. A3 will return true if the values of x and y are not equal, and false if they are equal. A2 (x + y) is an arithmetic expression, and A4 (x || y) is a logical expression.