سلام استاد چرا کلمه this داخل این object به window اشاره کرده مگه نباید به خود object اشاره میکرد؟
let testObject ={
name:"mahdi",
list:[1,2,3,4,5,6],
testFunc:function () {
// console.log(this);
this.list.forEach(function (element) {
console.log(this);
})
}
}
استاد چرا اینجا this داخل console.log() به خود این شی اشاره نکرده