Loading practice questions
What is the output of the given code
a=["hey", "ruby", "language"]
b=[puts b[puts a[2]
Correct Answer: B — 2
Explanation:
a and b are both ["hey", "ruby", "language"]. In Ruby, two arrays with the same elements in the same order are equal, so output is 'Equal'.