Which programming language is this?
val label = when (code) {
1 -> "one"
else -> "many"
}
Answer: Kotlin
when used as an expression with -> branches is Kotlin.val label = when (code) {
1 -> "one"
else -> "many"
}
Answer: Kotlin
when used as an expression with -> branches is Kotlin.