In the docs for the NodeJS express module, the example code has app.use(...).
app.use(...)
What is the use function and where is it defined?
use
It enables you to use any middleware (read more) like body_parser,CORS etc. Middleware can make changes to request and response objects. It can also execute a piece of code.
body_parser
CORS
request
response