Recently while working with javascript object in my chrome console I got confused with the log information about my object,Please help be understand it.
function makeFunction()
{
this.name="Some Name";
this.display=function(){return this.name;};
this.returning=function(){return this.display;};
}
var object1=new makeFunction();
console.log(object1);//First console log of object1
object1.name="Another name";//trying to change the property of object1
console.log(object1);//Second console log of object1
I updated the name property of object1 but when the result was printed it seemed like this