Ruby - Arrays
What will be the output of the following Ruby code?
a = [5, 6, 7] b = [7, 8, 9] result = a | b puts result.inspect
What will be the output of the following Ruby code?
a = [5, 6, 7] b = [7, 8, 9] result = a | b puts result.inspect
a and b are combined without duplicates: [5, 6, 7, 8, 9].15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions