.chars will already give you an array.
It's important to remember that the evaluation of the last statement in a method will be returned in ruby. No need for explicitly returning, let the evaluation of the condition be the return.
This is a destructive solution. Unlike .first or .last, this will modify the original array so that the first element is perminently removed.
Join doesn't really need any arguments in this case.
Loading collection data...
.chars will already give you an array.
It's important to remember that the evaluation of the last statement in a method will be returned in ruby. No need for explicitly returning, let the evaluation of the condition be the return.
This is a destructive solution. Unlike .first or .last, this will modify the original array so that the first element is perminently removed.
Join doesn't really need any arguments in this case.