Let's say I have some JavaScript that looks like this:
function A() {
var MyVar, SomeParameter;
// do work
MyVar = FunctionB(SomeParameter);
}
JsLint says I'm Missing 'new'. at the line MyVar = FunctionB(SomeParameter);
Why should I rewrite as MyVar = new FunctionB(SomeParameter);
Is there going to be any benefit?