The this keyword

Keyword this adalah object pemilik suatu baris code yang sedang dieksekusi.

const person = {
    name: "Rajif",
    walk() {
        console.log(this);
    }
}

person.walk() 

Last updated

Was this helpful?