[nfbcs] hidden parameters:
Aaron Cannon
cannona at fireantproductions.com
Mon Sep 10 00:53:55 UTC 2018
Yes, but using funcName.arguments is deprecated. Just use arguments directly. So:
function myFunc() {
console.log(arguments[1]);
}
Calling this function would print the second argument passed to it.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments
Aaron
--
This message was sent from a mobile device
> On Sep 9, 2018, at 15:08, Charles E. Black via nfbcs <nfbcs at nfbnet.org> wrote:
>
> If I send parameters to a function in javascript such as:
> myFunction('eddie','richard','john')
>
> And I receive them as
> Function myFunction(){
> Var args = myFunction.arguments;
> // Can I refer to each person like
> Var person1 = arge[0];
> Var person2 = arge[1];
> ...
> ]
> Thanks!
>
>
> _______________________________________________
> nfbcs mailing list
> nfbcs at nfbnet.org
> http://nfbnet.org/mailman/listinfo/nfbcs_nfbnet.org
> To unsubscribe, change your list options or get your account info for nfbcs:
> http://nfbnet.org/mailman/options/nfbcs_nfbnet.org/cannona%40fireantproductions.com
More information about the NFBCS
mailing list