$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #95

What is the output?

console.log(Math.max());
  1. -Infinity
  2. 0
  3. Infinity
  4. NaN
With no arguments Math.max returns its identity, -Infinity.
Play Problem Solving ▸