re: Daily Challenge #1 - String Peeler VIEW POST

FULL DISCUSSION
 

Ruby

def first_last_gone(string)
    return "Invalid Entry" unless string.length > 2
    string.slice!(0)
    string.slice!(-1)
    string
end
code of conduct - report abuse