Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyKotlinelvis operatorSingle-choice MCQ

Why does the Elvis operator's right side NOT execute here?

fun fallback(): String { println("computing") return "default" } val value: String? = "present" val result = value ?: fallback()