A function (method) is a block of code that can be called from another location in the program or class.
Used to declare and call a function at once.
Used to call and/or provide the context (object) for a function that is dependant on an object. Often, functions are assigned to objects and access object members using the 'this' keyword.
Closures are inner functions declared within outer functions.
Next Page >