Comments and KDoc
// starts a line comment and /* */ a block. /** */ writes KDoc documentation.
Example
// a note
/* block
comment */
/** Adds two numbers. */
fun add(a: Int, b: Int) = a + b
println(add(1, 2))Exercise
Line comment.
noteQuiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.