answersLogoWhite

0

Argument Array in java script

User Avatar

Anonymous

13y ago
Updated: 8/19/2019

There is an arguments object in JavaScript. This object is treated much like an array (but it's not actually an array.)

You can however reference the arguments passed to a function via this array. For instance, if we call a function like so:

exampleFunc('Tom', 15, 'potato');

Then we can access the value of Tom at the local variable arguments[0].

User Avatar

Wiki User

13y ago

What else can I help you with?