Skip to content

Kotlin Variables

Devrath edited this page Feb 17, 2023 · 1 revision

What is a kotlin variable

A variable is a holder that holds the reference to an information

Different types of variables in kotlin

var val
It represents the variable that can change over time It represents the variable where once assigned, it cannot be changed
We can refer it as variable We can refer it as value
It is mutable It is non mutable
Clone this wiki locally