Ruby - Arrays
What does the Ruby expression [1, 2, 3] & [2, 3, 4] return?
What does the Ruby expression [1, 2, 3] & [2, 3, 4] return?
& operator returns the intersection of two arrays, elements common to both.[1, 2, 3] and [2, 3, 4], common elements are 2 and 3.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions