Kotlin - Control Flow as Expressions
Find the error in this Kotlin code snippet:
val x = 3
when (x) {
1, 2 -> println("Low")
3 && 4 -> println("Medium")
else -> println("High")
}
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions