Array.length vs Array.prototype.length

前端 未结 4 1909
Happy的楠姐
Happy的楠姐 2020-12-19 15:20

I found that both the Array Object and Array.prototype have the length property. I am confused on using the Array.length

4条回答
  •  有刺的猬
    2020-12-19 15:51

    Array is a constructor function.

    All functions have a length property that returns the number of declared parameters in the function definition.

提交回复
热议问题