Conclusion

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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
Download course materials from Github
Previous: Demo Next: Learn the Kotlin Language: Create Variables