Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyKotlinwhen expressionsSingle-choice MCQ

What happens when you match multiple comma-separated values in a single when branch?

fun kind(c: Char) = when (c) { 'a', 'e', 'i', 'o', 'u' -> "vowel" else -> "consonant" } println(kind('e'))