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 (e.g. if you want to make a start before the lab class, or if you don’t complete the practical in the lab class) - the lab class provides dedicated time each week to focus on doing the practicals with on-tap support from the teaching team, but you may need more than the 2 hours to get these practicals done. We are happy to help with the previous week’s class if you tried to finish it off in your own time and need some help.
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.