Kotlin Tutorial #3: Variables, Types, and Type Inference
In the previous tutorial, you installed Kotlin and wrote your first programs. Now let’s learn about variables and types — the building blocks of every Kotlin program. Watch the Video: Prefer watching? Check out the video version of this tutorial on YouTube. In this tutorial, you will learn: The difference between val and var All basic types in Kotlin How type inference works How to convert between types How to use constants with const val val vs var Kotlin has two keywords for declaring variables: ...