Skip to content
Advertisement

Tag: private-methods

Can’t access the class variables from a event handler

I am making a web application for arranging seats, and I have written these codes: However, console.log(seatContainerConector); just gives me back undefined. I have tried to delete const seatContainerConector = this.seatContainer; and use console.log(this.seatContainer); instead, but it didn’t work. How can I solve this? Answer Your code is hard to debug since you leave out some essential elements, like new

Advertisement