Las variables contienen valores que utilizará más adelante en el programa. Kotlin te pide que elijas entre dos palabras clave: val (valor) para algo que no cambia después de la asignación y var (variable) cuando necesitas reasignar. El compilador a menudo puede adivinar el tipo desde el lado derecho, es decir, inferencia de tipos.

val - asignar una vez
Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.