Skip to content
Discussion options

You must be logged in to vote

Hi @dusannicolik92, I'm guessing you're using jsPsych v6.3? Do you see any errors in the console? It might also be helpful to see the output of console.log(data) in your response trial, just to double check the format of the data.

I think the problem might be the use of the jsPsych.pluginAPI.compareKeys function here. That function is intended to compare individual key press strings, e.g. 'a', 'l'. (And the only reason this function exists is so that two key presses can be compared in a case sensitive or insensitive way, depending on the experiment settings).

In your code, you're comparing two objects, and even if you extract the response string from the objects, there can be more than on…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dusannikolic92
Comment options

@becky-gilbert
Comment options

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