WHat am i doing wrong?


#1



`
my_array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

my_array.each.select {|i| i.even? puts i}


#2

We still need an if,

my_array.select { |i| puts i if i.even? }