Q. What will be the output of the following code?
Code:
console.log(2 + '2');
β
Correct Answer: (B)
22
Explanation: JavaScript coerces the number 2 to a string and concatenates, resulting in '22'.