One of the most convenient and powerful aspects of functions in Kotlin is the treatment of parameters and arguments. In particular, Kotlin supports both default parameter values and named arguments. These allow developers to write functions with increased flexibility and utility, while reducing boilerplate.
In this section, we'll build up our understanding of working with function arguments and parameters. We'll start by adding simple parameters to our functions, then work our way up to adding default parameter values and working with named arguments.