What is the difference between variable declaration with val and const in Kotlin?
val
const
const is used for mutable variables, while val is used for immutable variables.
const is used for compile-time constants, while val is used for immutable variables that can be initialized at runtime.
val variables must be initialized at compile-time, while const variables can be initialized at runtime.
There is no difference; val and const can be used interchangeably.