Event listener callback returns undefined element

i am making a mobile menu for wordpress theme and have a issue where the element I am selecting returns undefined when the click event listener callback is called. But in constructor you can see that the element is set. Can’t really figure this out, maybe someone can help me with this. Images for reference Thanks. javascript code

developers console