JavaScript basics
JavaScript is optional. In Concepts, code evaluates the same small, finite calculations shown in mathematical notation.
Numbers and arrays
const x = 2; names a number. [2, 3] stores two numbers, numbered from index zero.
Functions
const square = x => x * x;
return { result: square(input.x) };Combining values
const values = [2, 4, 6];
const sum = values.reduce((total, value) => total + value, 0);
return { sum };