1//Kotlin variable in string
2
3//variables go in a ${} in a string, example
4println("Happy ${age}th birdthday, ${name}!"
1// Use the $ sign to get the variable value inside a string:
2
3//Example 1:
4println("$days days and $hours hours to go!")
5
6//You can also use {} to contain expressions:
7println("${days*24} hours to go!")
8println("${myList}")