Functions
9 min · Kotlin
Package code under a name so you can reuse it.
Kotlin · Functions0/5 cleared
Enemy 1 of 5
Define a function with fun. Each parameter has a type (n: Int), and the return type follows the ( ) after a colon.
Use return to hand a value back.
You
Syntax Skeleton
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 10