So to declare either variables OR functions (and I assume, later, objects? unless it turns out they’re the same – they might be the same), it begins with var variableName = and if it’s a simple variable, it behaves predictably, and moves on to var variableName = (5 * 2). If it’s a function, this entire lovely curly brace structure needs to be set up:
var functionName = function (parameter) {
console.log(parameter * 2);
};
and then to call:
functionName(5)
where 5 is the parameter of the function functionName.
Ok. Rock and roll. Movin’.