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

What does this when expression assign to result?

val score = 85 val result = when (score) { in 90..100 -> "A" in 80..89 -> "B" in 70..79 -> "C" else -> "F" } println(result)