Skip to content

Instantly share code, notes, and snippets.

@arsalankhan994
Created February 12, 2022 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arsalankhan994/0a06a4cfd1c6652c6470dd6401a6fcd3 to your computer and use it in GitHub Desktop.
Save arsalankhan994/0a06a4cfd1c6652c6470dd6401a6fcd3 to your computer and use it in GitHub Desktop.
fun main() {
// Non changeable values in Kotlin
val personAge = 27
/*personAge = 26*/ // we can not reassign value to val variable
// Changeable values in Kotlin
var name = "Erselan Khan"
name = "Khan Erselan"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment