I came from a Java background and I'm studying Node.js & js in general.
I'm looking at this and this sample core functions from the Node.js library as I'm walking through a for-starters tutorial.
The documentation states what should be passed but I'm confused with the (foo[,bar]) part and I'm having a tough time understanding the following:
[] mean?
(foo[,bar]) or ([foo][,bar])?
const http = require("http");
let server = http.createServer();
console.log('running');
server.listen(8080);
Apologies for such a basic question but answers and advice are really appreciated.