why in this case "this" is a Window? I thought it would be Dog object, because it is on the left side of the dot.
const Dog = {
name: 'Spike',
showThisDog: () => {
console.log(this)
}
}
Dog.showThisDog()
I think I don't get how this keyword works. Can anyone explain it with this example? Thank U.