From what I learned arrow functions don't have a this keyword,it takes the parents this value. So how does this work? Doesn't the value for this in the func property point to the window object? How does it point to the class and return the name?
class app {
constructor(name){
this.name=name
}
func() => {return this.name}
}
let a = new app('william')
a.func()
// william