New course! Every coder should learn Generative AI!
Try a free lesson+ 6
arrow functions don't have their own `this`. If `this` is used inside arrow function then lexical scoping is used to resolve the binding and `this` refers to surrounding environment.
In your code just replace `this.name` with `this` only (on line 3). it's referring to Window Object and not the `human` object.