Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
how you change input name and get away with it
else is unneccessary, because when if condition is true, it will execute return "Hello, my love!" and end execution of greet function.
Usually I'd suggest to write the
return
in the same line after theif
instead to better indicate it's anif
body that is valid for one line only. Never forget thatgoto fail
bug ;-)I highly recommend using curly brackets
{ }
for theif
block for better readability, so the code reviewer won't be confused, like for example "why there are two returs?" for this sample code.