3 ms·
Wait, don't we have an arguments object in JavaScript that ["is an Array-like object corresponding to the arguments passed to a function."](https://developer.mo
by dandare 10y ago
Wait, don't we have an arguments object in JavaScript that ["is an Array-like object corresponding to the arguments passed to a function."](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/arguments https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...)
- TheCoelacanth 10y agoThat's accurately named, though. It's values are the arguments that were passed to the function. A hypothetical parameters object would presumably tell you what parameters the function was declared with, e.g. function foo(a, b, c) { return parameters; } would return ['a', 'b', 'c']
- dandare 10y agoNow I understand!!! Thanks :)