I am new to nodejs, not getting the concept of determining the number of arguments and the name of arguments. See this link. It tells that
The callback function takes two arguments, request and response. The
request object contains information regarding the client’s request, such
as the URL, HTTP headers, and much more. Similarly, the response object
is used to return data back to the client.
How do we know that
1) It accepts 2 arguments - do we need to check the documentation of nodejs?
2)How do we know the properties of the arguments - first argument is the request and second is response?
3)There is no error argument