$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #175

What is the output?

console.log(1 + '1' - 1);
  1. 10
  2. 1
  3. 11
  4. NaN
Plus concatenates to '11', then minus coerces it back to the number 11 and subtracts.
Play Problem Solving ▸