function Engineer (name, projs, mach) {
this.base = WorkerBee;
this.base(name, "engineering", projs);
this.machine = mach || "";
}
Engineer.prototype = new WorkerBee;
var jane = new Engineer("Doe, Jane", ["navigator", "javascript"], "belau");
This is from a Mozilla example page. Why are there no parentheses for new new WorkerBee? And if the WorkerBee constructor had arguments do we need to pass them in this line to?
Engineer.prototype = new WorkerBee(BaseClassConstructorArgument1,2...)
I had this issue: JS Hint: Missing '()' invoking a constructor.
So I am wondering now, how the clean solution would look like.