$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · hard · #191

What is the output?

console.log((function () { return arguments.length; })(1, 2, 3));
  1. 3
  2. 0
  3. undefined
  4. Error
arguments holds every passed value, even though the function declares no parameters.
Play Problem Solving ▸