Q. What will be the output?
Code:console.log(1 + '1' - 1);
β
Correct Answer: (A)
10
Explanation: 1 + '1' = '11'; '11' - 1 = 10 due to coercion.
console.log(1 + '1' - 1);