Function is a core construct in Julia for defining the behaviors of an application. In fact, Julia works more like a procedural/functional programming language as opposed to an object-oriented programming language. In object-oriented programming, you focus on building classes and defining functions for those classes. In Julia, you focus on building functions that operate on data types or data structures.
In this section, we will demonstrate how functions are defined and the powerful features that come with functions.