What will be the output of the following code?
var x = 5;
if (x > 10) {
console.log("x is greater than 10");
} else if (x > 5) {
console.log("x is greater than 5");
} else {
console.log("x is less than or equal to 5");
}
What will be the output of the following code?
var x = 5;
if (x > 10) {
console.log("x is greater than 10");
} else if (x > 5) {
console.log("x is greater than 5");
} else {
console.log("x is less than or equal to 5");
}