JavaScript -Pfeilfunktionen, um Methoden in Objekten zu erstellen
let person = {
name: 'Jack',
age: 25,
sayName: () => {
// this refers to the global .....
//
console.log(this.age);
}
}
person.sayName(); // undefined
SAMER SAEID