13.
What will be the output of the following code?
var x = 5;
var y = 10;
if (x > y) {
console.log("x is greater than y");
} else {
console.log("x is less than or equal to y");
}
x is greater than y
x is less than y
x is less than or equal to y
No output will be generated
Correct: C
The output of the code will be "x is less than or equal to y". The condition x > y is false, so the code inside the else block will be executed.