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