Given the function A,
function A()
{
....
console.log(1);
this.a = 1;
}
If I do
var b = new A();
then b inherits properties of A, and
b.a == 1; //true
But if I do
var c = new A;
then c again inherits properties of A, and
c.a == 1; //true
Is there any difference between new A()
vs new A
?