I have function which returns some value. In the function parameter I pass the same value:
fun getValue (value:String):String {
var message = value
value = "Hello"
return message
}
How can I call getValue function in another function? For example:
fun getResult (){
var a = getValue (what here?)
}
var a = getValue ("Hello"). Also note that the assignmentvalue = "Hello"inside thegetValuefunction is useless. What did you intend to achieve?getValuemethod I need in resaltvar a = message