Kotlin Tutorial

Kotlin Syntax

Kotlin Syntax

Every Kotlin program has rules for how statements are written and executed.

  • Follow Kotlin syntax rules for statements and blocks
  • Use comments to document code
  • Run examples in the Try it editor

Example

val name = "Sturdee"
println(name)
Try it Yourself
Run this KOTLIN example in your local environment or course sandbox.