Question from the Ruby test

How to get the first 3 elements of an array in Ruby

Medium

What will the variable a return?

a = []
a << 1 << 2 << 3
Author: HivebriteStatus: PublishedQuestion passed 196 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!