Writing our own functions: local functions
The easiest way to create a function in GenerativeComponents is by using the statement builder and selecting function. This gives the basic construction.
function (arguments) { }
Functions, like variables must be defined above the place where they are called in the code otherwise the compiler will throw an error.