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

What is the output?

console.log('5' - 3, '5' + 3);
  1. 2 53
  2. 53 53
  3. 2 8
  4. NaN 53
Minus has no string meaning so it coerces to a number; plus prefers concatenation.
Play Problem Solving ▸