Get to know MDN better
Esta página ha sido traducida del inglés por la comunidad. Aprende más y únete a la comunidad de MDN Web Docs.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since julio de 2015.
La propiedad length especifica el número de argumentos esperados por la función.
| Sobrescribir | No |
| Numerable | No |
| Configurable | Sí |
length es la propiedad de una función objeto, e indica el número de argumentos que una función requiere, por ejemplo, el número de parámetros formales. Este número no incluye rest parameter. En cambio, arguments.length es local a una función y aporta el número de argumentos actuales pasados a una función.
El Function constructor en sí mismo es Function un objeto. Sú propiedad length tiene el valor 1. Los atributos son: Grabable: false, Enumerable: false, Configurable: true.
La propiedad length del Function objeto prototype tiene el valor 0.
| ECMAScript® 2027 Language Specification # sec-function-instances-length |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 23 ene 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.