ReferenceError: resp is not defined

URL of experiment:

Description of the problem:
I faced an error when I run the experiment online which is " ReferenceError: resp is not defined."

Here is the code:

I hope anyone could help me with this. Thank you.

I assume you have a keyboard response called resp

However, you seem to be checking resp.corr at the beginning of the Response routine, before a key is pressed. I normally set the feedback message at the end of the main trial routine and then have a separate feedback routine to display it.

I also encountered similar problems. After reading your answer, I still don’t know what to do. Can you say it in more detail? thank you!

Do you have some code in an Each Frame tab checking resp.corr ?