Ruby - String Operations
Which of the following is the correct way to get the substring 'ell' from
str = "hello" using slicing?str = "hello" using slicing?str[start, length] extracts a substring starting at start with length characters.str[1,3] returns 'ell'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions