Jquery – For loop returns both if and else outputs
I'm trying to make a Simon says game and the problem is inside my answerCheck function. I have it set to be called when both the generated pattern and the user pattern length are equal to 4 and to pass…