Skip to content

Glossary: Kotlin Basics

val / var

Also written: val, var

Keywords that make a variable. A `val` is read-only and can't be given a new value, while a `var` can change.

Where the book teaches it

Related terms

variableassignment