Hi! Can anyone please help me translating the following code from python to java script?
I have made an experiment in psychopy builder (version 3.1.5 - otherwise the code component doesn’t work), which I would like to put online via pavlovia. I have a single code component in my experiment, that needs to be translated in order of doing so.
I have no idea how to do that, since I’m fairly new at this whole coding world.
My computer runs MacOS Catalina, version 10.15.
if len(key_resp_4.keys): # I have created a key response in the previous routine
if ‘j’ not in key_resp_4.keys:
continueRoutine = False # the routine stops if a certain key is given
Thanks in advance and please let me know if you need more info!