Kotlin Basics

val creates a read-only reference. main is the program entry point. A string template inserts the current value into text.

Kotlin
fun main() {
    val name = "Ada"
    println("Hello, $name")
}
Read the full lesson