Array Methods Quiz


Which array method is used in Ruby to tell if an array contains a certain value, returning true if it does and false if it doesn't? (Use the documentation!)

Show Answer

How would you test to see if the languages array contains the language "Korean" using the method you found above?.

languages = ["German", "English", "Arabic", "Hungarian", "Spanish", "Japanese"]

Show Answer

Complete the code below to print out each language in the languages array, capitalized, in alphabetical order.

languages = ["german", "english", "arabic", "hungarian", "spanish", "japanese"]

Show Answer