Skip to content
Discussion options

You must be logged in to vote

The data parameter in the on_finish() function will already contain the response of the participant, so instead of:

var response = jsPsych.data.getLastTrialData().values()[0].response.resp;

you can just use

var response = data.response.resp;

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Arnovia
Comment options

@Arnovia
Comment options

@becky-gilbert
Comment options

@Arnovia
Comment options

Answer selected by becky-gilbert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants