jskatas.org Continuously Learn JavaScript. Your Way.

Function constructor: Function.length

The length property of the Function constructor is always 1.

Function.length is always 1, the only "required" param
assert.strictEqual(Function.length, 1);

Links

The very first version of the spec defines this property already, the ES1 spec, see section 15.3.3.2 (PDF 732kB).

Required Knowledge

Related Katas

function API

Arrow functions

Async Function

Difficulty Level

BEGINNER

Stats

1 tests to solve