Kotlin Tutorial

Kotlin Functions

Source: Bro Code

Functions

Functions group reusable logic behind a name you can call anywhere.

KOTLIN
fun greet(name: String) = "Hello, $name"
Try it Yourself
Run this KOTLIN example in your local environment or course sandbox.