Why has my code stopped working?

Why has my code stopped working?
0

#1

So I made the calculator program is codepen a while back here: https://codepen.io/roman_fedoruk/pen/RoRZxd?editors=1010 and recently decided to look back at it and for some reason any button I press doesn’t work, well actually none of the JS seems to work. Even when I added an alert(); to the button (outside from any function), it doesn’t run.

If anyone knows what this could be I would really appreciate it!


#2

I don’t know what’s going on, but deactivating the ‘shortcuts’ part of your program solves the problem.


#3

Ok thanks! I think I will just rewrite all of the shortcuts in vanilla JS now, I was planning on doing it sometime anyway.