Q. What will be the output of this code?
Code:console.log(1 == '1');
β
Correct Answer: (B)
true
Explanation: == performs type coercion, so 1 == '1' is true.
console.log(1 == '1');