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

What is the output?

const r = ("5" as any) - 3;
console.log(r);
  1. 2
  2. "2"
  3. 53
  4. NaN
The minus operator forces numeric conversion: 5 - 3 = 2.
Play Problem Solving ▸