I'm studying the WebRTC tutorial from Google's codelab.
var fileServer = new(nodeStatic.Server)();
nodeStatic.Server is apparently a constructor. So, your code works like this;
let serverConstructor = nodeStatic.Server; let fileServer = new serverConstructor();
The parens are used in your original code to control the competing precedence between
() and the
nodeStatic.Server are actually needed or not.