Update jspsych.md

Add missing comma
This commit is contained in:
Susan Buck 2024-10-18 11:24:42 -04:00 committed by GitHub
parent a411b88069
commit aae896baa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,7 +150,7 @@ Ends the experiment, skipping all remaining trials. If the `on_finish` event han
var trial = { var trial = {
type: jsPsychImageKeyboardResponse, type: jsPsychImageKeyboardResponse,
stimulus: 'image1.jpg', stimulus: 'image1.jpg',
choices: ['y', 'n'] choices: ['y', 'n'],
prompt: '<p>Press "y" to Continue. Press "n" to end the experiment</p>', prompt: '<p>Press "y" to Continue. Press "n" to end the experiment</p>',
on_finish: function(data){ on_finish: function(data){
if(jsPsych.pluginAPI.compareKeys(data.response, "n")){ if(jsPsych.pluginAPI.compareKeys(data.response, "n")){