Complete the code to chain methods that convert a string to uppercase.
"hello".[1]
The upcase method converts all letters in the string to uppercase.
Complete the code to chain methods that remove whitespace and then reverse the string.
" ruby ".[1].reverse
The strip method removes leading and trailing whitespace without changing the original string.
Fix the error in the method chain that tries to convert a string to an integer and then add 5.
"10".[1] + 5
The to_i method converts the string to an integer so you can add numbers.
Fill both blanks to chain methods that split a sentence into words and then sort them alphabetically.
"hello world ruby".[1]([2]).sort
The split method breaks the string into words using a space (" ") as the separator, then sort arranges them alphabetically.
Fill all three blanks to chain methods that remove vowels from a string, convert it to uppercase, and then reverse it.
"example".[1]([2]).[3].reverse
The delete method removes all vowels specified in "aeiou", then upcase converts the result to uppercase, and finally reverse reverses the string.