I have a class and a constructor for the class. Inside the constructor I have an event listener:
this.$select.addEventListener('change', evt => this.updateVideoDevice(evt));
Inside the function, I need both this and the event.
updateVideoDevice(event) {
console.log('this');
console.log(this);
const select = event.target;
How can I access both this (as the Class) and the click event inside my function?