lengthintermediatefunction fn(...args) {}
fn.length // β 0 (rest params not counted)Rest parameters are not included in Function.length.
Parameters with default values are not counted in fn.length. Only the parameters before the first default are counted.
Challenge: Verify that function h(a, b = 1) {} has h.length === 1.