| Reference | Downloads | Github

Problem w/ code in online exp

URL of experiment:

Description of the problem:


My problem is that I can’t ‘translate’ py to js correctly. My code is very short and simple, but unfortunately I can’t java script. My code concerns feedback for tasks and looks as follows

Begin experiment


Begin routine

msg = "Poprawna odpowiedź to %i" %(corrAns)

I understand that I should choose the option both in the code, but unfortunately I am unable to translate. Can somebody help me?

Thank you very much

If the error you are getting concerns only the formatting of msg, try

msg = "Poprawna odpowiedź to " +corrAns