How to get the correct this? for js

there is an object A:

function A(){
    this.Avar = "hello";
}
A.prototype.breadcrumb = {
    push: function(){
        console.info(this.Avar);
    }
};
var a = new A();

I want to add a breadcrumb object, using new A (). Breadcrumb.push , but the printed this is a {push:.} object, not a A object. How can I modify the context in which he reads the A object?

Mar.03,2021


function A(){

this.Avar = 'hello';
var self = this;
this.breadcrumb = {
    push:function(){
        console.log(self.Avar);
    }
};

}
var aa = new A ();
aa.breadcrumb.push ();

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54a10-4461f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54a10-4461f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?