Why do you need a separate functions checkForCorrectAnswer and checkForWrongAnswer? Why not have a function named checkAnswer that does what needs to be done for the right answer and does something else for the wrong answer?
So, although my problem was fixed, I still am stuck at a wall because I need questionInputField to be able to be used outside of that function.
I want to make it focused upon clicking the start quiz button and also focused when the user submits a question answer. It’s rather annoying if someone has to keep clicking the input field after submitting a question. I know how to do this with .focus() however outside of that function questionInputField does not exist. Is there any way around this or did I just hit a wall in my project?