Beginner
Kotlin
Q6 / 100
How do you define a function in Kotlin?
Correct! Well done.
Incorrect.
The correct answer is C) fun greet(): Unit
C
Correct Answer
fun greet(): Unit
Explanation
Kotlin uses the fun keyword to declare functions.
Progress
6/100