Function.length length Description Function.length Return values integer. Examples Example #1 – length example Runvar f = function (param1, param2) { }; console.log(f.length); // The function have 2 parameters. External references Mozilla: Function.length property