Issue with trying to make code reusable by making it a function

I made just be fried from working on it all day. But building a calculator, trying to turn some code into reusable code so I can use it for when user clicks on buttons, and when user types the input in the input field. I am getting e is not defined. The function is created in the global scope and being used inside an event listener. https://github.com/bsupinski/calculator https://bsupinski.github.io/calculator/
3 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Errtu
ErrtuOP2y ago
Ah thank you, I see it now. e.target is being used as target in the function. Thank you
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server