Which of these enable a Kotlin program to run on any computer? A JDK B JVM C IntelliJ IDEA D main() code example
Example 1: Kotlin is like java
val label = "The width is "
val width = 94
val widthLabel = label + width
// The width is 94
Example 2: Kotlin is like java
// if is an expression, so ternary operation not needed
val loaded = true
val status = if (loaded) "Ready" else "Loading..."
// "Ready