human-javascript icon indicating copy to clipboard operation
human-javascript copied to clipboard

Incorrect usage of the terms arguments/parameters in chapter 10

Open svenheden opened this issue 9 years ago • 0 comments

First off I want to thank you for writing a great book! I've learnt a lot of useful stuff reading it.

In chapter 10 I found a sentence that I think you can approve a bit...

That function is called with the "arguments," a.k.a. parameters you specified as being dynamic in your routes.

Arguments and parameters really isn't the same thing, although the distinction can be hard to remember. :) Wikipedia says

Just as in standard mathematical usage, the argument is thus the actual input passed to a function, procedure, or routine, whereas the parameter is the variable inside the implementation of the subroutine. For example, if one defines the add subroutine as def add(x, y): return x + y, then x, y are parameters, while if this is called as add(2, 3), then 2, 3 are the arguments.

So I think you could get rid of the quotation marks around arguments and the a.k.a. parameters part if you want to be more correct. :)

svenheden avatar Jul 21 '15 10:07 svenheden