My feedback message works fine when I run the experiment on my computer, but when I run it on Pavlovia, the feedback message is always “wrong.” I think it’s probably because I translated the python code incorrectly to js code. How would you translate the python code below to JS code? Thanks!
Here’s my python code for feedback:
if not key_resp.rt: msg = 'Failed to respond' elif key_resp.keys[-1]==corrAns: msg = 'Correct!' else: msg = 'Wrong!'