-
-
Save PatilShreyas/e150760f2b97d08c4ff7364adc106c54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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