Answers for "syntax for kotlin variables"

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

Browse Popular Code Answers by Language