JavaScript this All In One js, this, bind, call, apply, new, function, arrow function, constructor function, class
js, this, bind, call, apply, new, function, arrow function, constructor function, class
- this in a global context
golbalThis
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
- this in object construction
- this in an object method
- this in a simple function
- this in an arrow function
- this in an event listener
- this in a class
refs
https://zellwk.com/blog/this/
https://github.com/zellwk/z
https://github.com/zellwk/zellwk.com/blob/master/src/posts/2017-06-21-this.md