Sign in Go Pro

Kotlin

Variables

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next

Previous

About

Variables in Kotlin are extremely powerful, helping you write safer, cleaner code. In this lesson we'll go into detail about Kotlin variables and nullability, highlighting best practices for writing safe, clean code. In this lesson you will learn: * Read Only variables (`val`) * Mutable variables (`var`) * Working with nullable types #### Links * [Kotlin Docs](https://kotlinlang.org/docs/reference/basic-syntax.html#defining-local-variables) * [Try Kotlin](http://try.kotlinlang.org)

Instructor

Links

Lessons in Kotlin