Important to note - in Ruby,
In Ruby, a function is declared like so:
Uses the 'function' keyword, can be called from anywhere in the code (even above the declaration), DO NOT put into any loops or conditionals. Function declarations are intended to be separate from the logical flow of the program at runtime. Function declarations do not need a semicolon, but using one is harmless.
Creates a 'nameless' function, evaluated at runtime, end with a semicolon like all other expressions.
This one gave me the most trouble this week. It's a function declaration that uses the 'this' method to list properties, and is called with the 'new' keyword. Using functions in this way allows for multiple instances of the same function, much like Ruby class objects.