Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18016

Re: Function definition expression has a length property?

Newsgroups comp.lang.javascript
Date 2013-01-07 21:49 -0800
References <91b7a4ff-8eb7-4ef2-ac97-4e046024d5f0@googlegroups.com> <kce7s4$h9o$2@news.albasani.net>
Message-ID <850330a4-b85e-41e3-b56c-fd0c53b3ee2a@googlegroups.com> (permalink)
Subject Re: Function definition expression has a length property?
From Thomas Li <cooooooder@gmail.com>

Show all headers | View raw


On Monday, January 7, 2013 6:26:12 PM UTC+8, Stefan Weiss wrote:
> On 2013-01-07 11:02, Thomas Li wrote:
> 
> > Why function definition expression has a "length" property and its value is always 1?
> 
> 
> 
> Not just function expressions, every function object has a length
> 
> property. Its value is the number of parameters in the function definition.
> 
> 
> 
> - stefan

Thanks, stefan :)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Function definition expression has a length property? Thomas Li <cooooooder@gmail.com> - 2013-01-07 02:02 -0800
  Re: Function definition expression has a length property? Stefan Weiss <krewecherl@gmail.com> - 2013-01-07 11:26 +0100
    Re: Function definition expression has a length property? Thomas Li <cooooooder@gmail.com> - 2013-01-07 21:49 -0800

csiph-web