Computer scienceProgramming languagesKotlinKotlin MultiplatformIntroduction to KMP

Tools for KMP

Theory

DISABLE_08

Report a typo

Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Here's a Kotlin code snippet that prints the current Kotlin version and JVM target. However, the lines of code are mixed up. Can you reorder the lines to make the code run correctly?
Reorder lines using drag or arrows. Adjust indentation with left buttons
                println("Kotlin version: $kotlinVersion")
              
                val kotlinVersion = KotlinVersion.CURRENT
              
                }
              
                println("JVM target: $jvmTarget")
              
                val jvmTarget = "1.8"
              
                fun main() {
              
___

Create a free account to access the full topic