Getting Started

Creating your first online experiment

Follow along with the videos below to get up and running fast.

Other resources

You will find many demos and useful tips on the HowTo Page and the Videos Page. Go to the Glossary Page for a quick reference.

Free online book

There is a free comprehensive manual online that covers all aspects of NeuroTask Scripting. (Hint: You can press Ctrl-F and quickly search the text for keywords.)

What is scripting? 4.5 min
This video is an optional precursor for novices who are new to coding and want a bit of background on what scripting is before diving in.

Learn the basics of NeuroTask scripting with the video tutorials below

by Julia Broderick-Hale (NeuroTask intern in 2020)

Each video also has a 'howto' description and JavaScript code, which you can copy to your account with one click.

My first script tutorial 4.0 min
This tutorial video shows how to create a demo experiment, a basic word recall task. It shows a series of words, then a text field for subjects to type the words they remember. Follow along…
My second script tutorial 4.0 min
This tutorial video describes how to create a basic image memory task. It shows a series of images, then a text field for subjects to type what they remember. Follow along by making your own…
My third script tutorial 7.0 min
This tutorial video demonstrates the basic structure of an experiment. Follow along by making your own copy of the script, found at: https://scripting.neurotask.com/howto/my_third_script…
 

Mini Course: Online Programming With NeuroTask

by Job Toebosch (NeuroTask intern in 2019)

In Chapter 1, you get a general idea of what NeuroTask Scripting is. Then you can code along with the videos in Chapter 2. If you are an experienced programmer, you want to skip right video after Chapter 2, which runs to Chapter 2 at a much higher pace.

Mini Course Chapter 1 16.0 min
Job Toebosch takes you through the first steps in creating an online experiment with NeuroTask Scripting.
Mini Course Chapter 2 Part 1 4.0 min
This video gives a short summary of the experiment we are going to program in the second part of this course.
Mini Course Chapter 2 Part 2 3.5 min
In this video we use the functions radio() and input() to ask some demographic details of our partcipants
Mini Course Chapter 2 Part 3 9.0 min
In this video we use a for loop in order to reduce the length of our script by replacing repetative elements with the for-loop
Mini Course Chapter 2 Part 4 9.0 min
In this video we capture correct responses of our particpants using the awaitkey function. In addition, we use the square-brackets notation to select a item in an array based on the cycle of…
Mini Course Chapter 2 Part 5 6.5 min
Capture reaction times of our partcipants by assessing the .RT key within our answer object. use the .push function to push reaction times inside an array. Finally, we use the log() function…
Mini Course Chapter 2 Part 6 8.0 min
This is the last video of chapter 2 of this mini-course. In this video we clean the script that we constructed during the first videos. - Place semicolons at end of line - Remove long array…
Intro for programmers 19.5 min
This video is similar to the 6 video's of chapter 2. However, the workpace is much higher compared to the detailed separate videos. Hence, this tutorial is more suitable for those with some…