The property lengthindicates the number of arguments expected function.
As Object function length
, Object.length .
:
function test(a, b, c) {}
console.log(test.length);
Hide resultObject:
console.log(typeof Object);
console.log(Object.length);
Hide result
" object.length , array.length?"
, array Object (Try typeof []), " ", . object-without-indices, , key Object, length, obj.length undefined.