What is the difference between variable declaration with var and val in Kotlin?
var
val
var and val are used for completely different purposes.
var and val are interchangeable; there is no difference.
var is used for immutable variables, while val is used for mutable variables.
var is used for mutable variables, while val is used for immutable variables.