Basics of jsPsych and javascript
This week we are going to look at a little bit more of the Online Experiments with jsPsych tutorial, then next week we’ll be in a position to start looking at code for actual experiments. Remember, the idea is that you can work through these practicals in the lab classes and, if necessary, in your own time - I recommend you use the lab classes as dedicated time to focus on the practicals, with on-tap support from the teaching team.
The key things you need to take away from the tutorial are:
Some tips on points that might cause confusion:
fixation
trial, have a think about how you could use the plugins you have already seen to put a cross-like thing on screen, and how you could have it appear for a fixed duration (e.g. 1000ms), which is how fixation crosses usually work. I think figuring this kind of thing out is the heart of building a jsPsych experiment - how do I use the plugins I know about (or that I haven’t used before but are provided by jsPsych) to achieve a particular on-screen effect I am looking for? So take your time with this one rather than just jumping straight to looking at the answer!All aspects of this work are licensed under a Creative Commons Attribution 4.0 International License.