Conclusion
Variables are a fundamental programming concept for storing data within programs. In Kotlin, variables can hold many different types of data. Each type of data has a unique set of properties that make them suitable for specific purposes.
As you write code, you’ll realize you need to leave notes at certain points in the code. They’re good as a reference to yourself and others who may read or work with the code you write. These are known as comments.
In this tutorial, you’ve learned:
- Differences between
varandval - Descriptions and uses of basic data types in Kotlin like
Int,Double,Float,Boolean,Char, andString - Code comments and how to use them in Kotlin
You’ve seen some types of Kotlin data in this lesson. In the next lesson, you’ll learn more about Kotlin Types.