Ruby - Arrays
Identify the error in the following Ruby code snippet:
a = [1, 2, 3] b = [2, 3, 4] result = a & b puts result
What is the problem?
Identify the error in the following Ruby code snippet:
a = [1, 2, 3] b = [2, 3, 4] result = a & b puts result
What is the problem?
& operator is valid for arrays to find intersection.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions