jsPsych Assignment 2
PNB 3EE3; Fink
Assignment instructions
The goal of this assignment is to familiarize you with the basics of setting up experiments in jsPsych.
There are multiple steps to this assignment.
Create a new folder for this assignment called “JsPsych_2_assignment”.
- Hint: Create this folder inside your local clone of the Github repository so the changes are tracked by git.
Complete the Hello World tutorial. Use ‘Option 2: Download and host jsPsych’ and follow the same directory structure as shown in the example.
- Note that in the class, we completed this tutorial with Option 1.
Complete the Reaction Time tutorial. Please use the downloaded JsPsych library (
MyExperiment/jspsych/
) from previous step to import jspsych scripts instead of using the CDN method.- If you are struggling with this tutorial, or you just want some additional reinforcement of the concepts you are learning, watch this video tutorial. Towards the very end of the video the speaker also shows how to import JsPsych scripts from the local machine.
Create a copy of the reaction time tutorial and name the file
myNewExperiment.html
Make sure that both your experiment html files and the related assets (images) are inside the
MyExperiment/
folder (created in step 2), which should also contain your downloaded JsPsych library insidejspsych/
.Make the following changes to the new experiment (myNewExperiment.html):
Make the diameter of the orange circle half of its current diameter.
Change the blue circle to a blue square.
At the end of the experiment, add feedback regarding how fast participants’ reaction times were for the blue squares vs. orange circles.
Add a
README.md
file to this folder so that we can understand anything critical to making your code run.Push all changes to your GitHub repository.
Assessment
This assignment is worth 10% of your grade. The breakdown of grading for this assignment is as follows:
Completeness (all necessary files submitted in one folder; code accomplishes what it should): 30%
Reproducability (all files can be executed without error): 40%
Documentation (code and README.md have been appropriately commented so that others can understand): 30%
IMPORTANT: Generative AI (e.g., chatGPT) should not be used to complete this assignment.