Kotlin Variables - devrath/KotlinAlchemy GitHub Wiki
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 |