Introduction
Variables store information your app uses. Kotlin helps keep your app safe by making sure variables are used correctly and not null by mistake.
When you want to store a value that does not change, like a user's name.
When you need to store a value that can change, like a score in a game.
When you want to avoid app crashes by safely handling variables that might be empty or missing.
When you want to clearly tell the app if a variable can be empty or must always have a value.