The attribute onclick has not been added to your button.
You need to add tge attribute to fire in the function when the button is clicked.
Happy coding 😉 Keep coding 🙏🏾
Alfred Juma There's no need to use onclick in HTML, he used it in the JS and the event listener actually works fine.
Actually, this if (this.inputSetup === '') in the setup function causes the problem. If you'd like to check whether this.inputSetup is undefined you should probably use if (this.inputSetup === null) or if (this.inputSetup === undefined). At least it's clear that the setup function gets stuck on that if clause, so you might comment it out, too, until you checked the functionality of the rest of the code.
Youssef Alaa ok, sorry, I might have misunderstood the purpose of the if statement. I still don't know, what it does but if you remove it, you can change line 25 to
and the code works.