JavaScript Functions

This example calls a function which performs a calculation, and returns the result: