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.

Practice Coach are on Sturdee Pro ($20/month)

See plans