Ruby - Arrays
What will be the output of this Ruby code?
arr = [100, 200, 300]
puts arr.first(2).join('-')arr = [100, 200, 300]
puts arr.first(2).join('-')15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions