JavaScript Ta wewnętrzna metoda obiektu
const person = {
name : 'Jack',
age: 25,
// this inside method
// this refers to the object itself
greet() {
console.log(this);
console.log(this.name);
}
}
person.greet();
SAMER SAEID