Q. What will be logged?
Code:console.log('2' - '1');
β
Correct Answer: (A)
1
Explanation: The - operator coerces both strings to numbers.
console.log('2' - '1');