I was reading the documentation for the HTTP module in nodejs, and I'm a bit confused with the syntax used to display parameters. For example, here's the syntax for the createServer
method.
http.createServer([options][, requestListener])
Could someone break down what the arguments mean? Specifically, what does the comma before "request listener" indicate?
Another one that's even more confusing to me:
http.request(url[, options][, callback])
Thanks!