function test(){
this.name = 'My function';
}
let a = test();
let b = new test(); // Is affect on performance,memory?
Call the function directly and call via constructor. What is the diffrence between?
function test(){
this.name = 'My function';
}
let a = test();
let b = new test(); // Is affect on performance,memory?
Call the function directly and call via constructor. What is the diffrence between?