var in kotlin code example
Example 1: kotlin variable
val name = ”Marcin” // Can't be changed
var age = 5 // Can be changed
age++
Example 2: kotlin var and val
val declares a read-only property, var a mutable one
val name = ”Marcin” // Can't be changed
var age = 5 // Can be changed
age++
val declares a read-only property, var a mutable one