javascript – new function () {} vs new Function (); – Stack Overflow

Note, that when a function is called with the new keyword in javascript it exhibits special behavior. In your first statement the constructor function called is an already defined function, Function. As has been pointed out your first statement returns a function while the second returns an object.

Read More