News for hackers. Stuff that matters.
Re:Parameter or Argument? by dandare on Thursday July 14, 2016 @10:18AM (#12093975)
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/Referen...)
Re:Parameter or Argument? by TheCoelacanth on Thursday July 14, 2016 @10:31AM (#12094101)
That'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']
Re:Parameter or Argument? by dandare on Thursday July 14, 2016 @12:19PM (#12095100)
Now I understand!!! Thanks :)