I have the following code
function Person(name){
console.log(this);
this.firstname=name;
}
var sam=new Person("Sam");
console.log(sam);
Output is - Response
When a new Object is created, initially this should point to an empty object. Why it has the updated response?