Length Quiz


How would you determine the length of array ["a", "b", "c"] in Ruby?

Show Answer

Find the last item in array vegetables using .length.

vegetables = ["carrot", "zucchini", "kale", "spinach", "lettuce"]

Show Answer

Write a while loops that prints every odd number from the variable one_to_ten.

one_to_ten = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

Show Answer