Recording Code Variables on Pavlovia (Builder)

Hello PsychoPy Community,

It is easy enough to recording variables assigned in the code component using the Builder offline:

trials.addData(‘yourvariable’,yourvariable)

However, when designing an online study (it appears that) you need to code this in JavaScript: how do a write an equivalent line in JS?

Thank you!

Solved my own problem:

trials.addData(‘yourvariable’,yourvariable);

i.e., the js syntax requires a semicolon on the end.