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.
name is a String object.
String class has the [] instance method that let you
extract parts of the String object.
In this case name[0] returnes the first character of name
name[1..-1] will give back a new string without the first character
https://ruby-doc.org/core-2.7.2/String.html#method-i-5B-5D
Why name with an array and 0 ? name[0]