fun main() { | |
doGreet("John Doe") | |
} | |
fun doGreet(name: String) { | |
- val greetMessage = "Good Morning " + name + " 🌅" | |
+ val greetMessage = "Good Morning $name 🌅" | |
println(greetMessage) // prints "Good Morning John Doe 🌅" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment