What si difference between calling Function constructor with new and without it in front of keyword Function.
var result = Function('a', 'b', 'return a + b');
var myResult = new Function('a','b', 'return a + b');
I know about new operator and that it: Create a blank, plain JavaScript object Links (sets the constructor of) this object to another object; ....
But that is make sanse in this situation with constructor function
function Car(make, model, year) {
this.make = make;
this.model = model;
this.year = year;
}
const car1 = new Car('Eagle', 'Talon TSi', 1993);
I know that in this situation each time new car instance will be crated.
But in above example what is difference between result and myResult? Please give me a little bit better explanation.