Answers for "how do you declare variables in kotlin"

5

how to define variable in kotlin

val firstName: String = "Chike"
val variable name: Typeofthevariable = TheValueofyourvariable
Posted by: Guest on April-15-2020
0

variables en kotlin

// 1
val question = "What's your name?"

// 2 
val question: String = "What's your name?"

// 3 
var question: String = "What's your name?"
Posted by: Guest on December-06-2021

Code answers related to "how do you declare variables in kotlin"

Browse Popular Code Answers by Language