Explore Library
KotlinIntroduction & Core Concepts

50 items

QuizBeginner

if as an Expression

In Kotlin, if can return a value and be used as an expression.

What is valid about `val max = if (a > b) a else b` in Kotlin?