https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/length Ok so it seems length returns number of parameter for a function. Didn't know that.