Skip to content

Glossary: Kotlin Basics

expression

Also written: expressions

Code that produces a value, such as `2 + 3`. `if`, `when` and `try` can all be used as expressions, and then they need to give a value in every case.

Where the book teaches it

Related terms

single-expression functionif / else