It's kind of amazing how you can go a couple of decades in a language and still find new things, fairly basic things you didn't know. TIL that the .length of a function reflects the # of named arguments in its signature. How did I not know?
-
-
actually, I think the `arguments` object is a confirmation of these. The `arguments` object/array holds all the values that were passed in as **arguments**. It's a very nuanced and frowned-upon strange'ness that there's a deep reference from the arguments entry to the param.
-
I always teach it this way, that the `arguments` array is holding the argument values, irrespective of any params which also might be holding them by name.
- 8 more replies
New conversation -
-
-
counterparameter*
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.