15.3 Calling a Kotlin Function
Once declared, functions are called using the following syntax:
<function name> (<arg1>, <arg2>, ... )
Each argument passed through to a function must match the parameters the function is configured to accept. For example, to call a function named sayHello that takes no parameters and returns no value, we would write the following code:
sayHello()
In the case of a message that accepts parameters, the function could be called as follows:
buildMessageFor("John", 10)