concept parameter in category express

This is an excerpt from Manning's book Getting MEAN with Mongo, Express, Angular, and Node.js 2ED.
An Express project is installed from the command line, and the configuration is passed in with parameters of the command you use. If you’re not familiar with using the command line, don’t worry; none of what we’ll go through in the book is particularly complex, and it’s all easy to remember. Once you’ve started using it, you’ll probably love how it makes some operations so fast.
As you’re working with arrays, you can use JavaScript’s native array sort method, which accepts a function as a parameter. This function takes two items at a time from the array and can compare them however you code. The return value of the function should be a positive or negative number. A negative number means that the order stays the same; positive means that the order changes.

This is an excerpt from Manning's book Express in Action: Writing, building, and testing Node.js applications.
The simplest way to grab a parameter is by putting it in your route with a colon in front of it. To grab the value, you’ll look inside the params property of the request, as shown in the next listing.
In this example, you see how to grab parameters from a more dynamic route. The code will match what you want: things like /users/123 and /users/8. But although it won’t match a parameter-less /users/ or /users/123/posts, it probably still matches more than what you want. It will also match /users/cake and /users/horse_ebooks. If you want to be more specific, you have a few options.