Glossary
JavaScript
A programming language that is built into all internet browsers such as Safari, Chrome, and even into the browsers on your smart phone
StratifiedJS
A more advanced form of JavaScript that happens to it make it easier to program experiments online. See the StratifiedJS Webpage
superset ("StratifiedJS is a superset of JS")
This means that it can do the same as JavaScript and more
programming language
A format of typed characters (language) that computers can understand
server
Computer somewhere in the world that makes sure that your experiment is relayed to your subjects. See this page for more information
Dojo library
A popular collection of handy JavaScript functions you can use in your scripts. see the Dojo Toolkit Documentation
jQuery library
A popular collection of handy JavaScript functions you can use in your scripts. see the jQuery website
libraries
A collection of handy functions you can use in your scripts (e.g., on NeuroTask Scripting Dojo and jQuery are loaded by default and can be used in your scripts)
event
Something that happens in the browser, e.g., a user clicking on something, a mouse moving, a key being pressed or released, but also a video starting or ending and much more
function
A function is some lines of code that perform a task. It can be called and reused. You can pass information to a function and it can send information back. An example is text("Hello"), where text is the function and "Hello" the argument; it shows the text Hello on the screen.
argument
The data you pass into a function call, e.g., the string "Hello" in text("Hello"), which shows the word Hello on the screen
object
An object is a variable that may contain various types of properties, each of which may contain data. These are accessible through the so called dot-notation. E.g., response.age could hold the age of the subject entered earlier. An object may also have its own functions. For example, a Block b has a text() function, which you can call as b.text("Hello"), which shows the string Hello in the middle of the Block
return
A function returns a value with the keyword return. E.g., the function random() returns a random number between 0 and 1, using return internally to do this.
comment
Remarks and explanations to future users of the code that do not do anything.
declaring a variable
creating it in the first place (you can jump right into initialization too! no need for "var e;" then "e = await("keypress");". you can just say "var e = await("keypress");"
NeuroTask
NeuroTask BV is a company that specializes in online experiments and (neuro)psychological testing
NeuroTask Scripting
Platform and infrastructure where users can program their own online experiments and collect data
NeuroTask Portals
Ready-made complete solutions for complex long-running experiments
NeuroTask Testing
Only neuropsychological tests
Script
A series of commands that tells the computer (browser) what to do