I have not worked with the DOM in a while, and I decided to do a little refresher project. Needless to say, it is not going well. I am trying to get it so that for every arrow that is pressed the display will toggle and show the answer. If it is pressed again the answer will go back to display:none;
I got it working if I select the first arrow with querySelector, but when I tried it with querySelector all I get the error "Cannot read properties of undefined (reading ‘display’)