Workshop
CRBLM WORKSHOP: INTRO TO JAVASCRIPT FOR ONLINE EXPERIMENTS
Learn how to design your experiments for online deployment using JavaScript. No prior coding experience needed as all necessary concepts will be covered from the ground up. The workshop is organized in two complementary parts – you may choose to attend one or both, depending on your learning needs. See the schedule below for topics covered in each session.
Note: Participants can use any type of computer as long as it has a local installation of JATOS (https://www.jatos.org/Installation.html) and a text editor such as Sublime Text (https://www.sublimetext.com/3).
*
Presented by: Isaac Kinley (McMaster University)
When: Wednesday, April 6, and Wednesday, April 13
Where: Online, with zoom link to be sent in advance. Registration required (below)
*
Part 1 (Wednesday, April 6):
9:30-10:30: Live zoom covering the following topics:
- A mental model of the internet (client-server architecture, which code runs where)
- How HTML, CSS, and JavaScript produce dynamic web content
- Data types in JavaScript
- Control flow in JavaScript
10:30-12:30: Independent (or small team) exercises
- Practice exercises building simple JavaScript programs and logging results in the console
- The instructor will be available for support if needed
12:30-1:30: Live zoom covering the following topics:
- Taking up practice exercises
- Overview of JATOS and jsPsych
- Basic jsPsych (trials, the timeline, plugins)
- Uploading an experiment to a local JATOS server
- Using jsPsych’s documentation
- Suggested practice exercise for 2-week break (building a simple reaction time experiment)
Part 2 (Wednesday, April 13)
9:30-10:30: Live zoom covering the following topics:
- Advanced jsPsych (looping timelines, conditional timelines)
- Writing concise jsPsych code
- Sending data to a JATOS server
10:30-12:30: Independent (or small team) exercises
- Practice exercises to concisely pre-generate stimuli and save data from the reaction time experiment
- The instructor will be available for support if needed
12:30-1:30: Live zoom covering the following topics:
- Taking up practice exercises
- Delivering audio stimuli over the web
- Uploading an experiment to BRAMS-OTP
- Understanding the format of saved data
- Resources for further learning
(This event has now passed)