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 var and val
Descriptions and uses of basic data types in Kotlin like Int, Double, Float, Boolean, Char, and String
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.
See forum comments
This content was released on May 22 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Demo
Next: Learn the Kotlin Language: Create Variables
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.