Q. What is the output?
Code:
console.log(3 > 2 > 1);
β
Correct Answer: (B)
false
Explanation: 3 > 2 is true (1), then 1 > 1 is false.
console.log(3 > 2 > 1);
Explanation: 3 > 2 is true (1), then 1 > 1 is false.