Kotlin has two different ways to declare variables: val (immutable variable) and var (mutable variable). The main between them is mutability.If you are planning to reassign value to variable use var, otherwise use val If you try to reassign the constant variable which is val, in the Intellij IDE,