[solved] 19/21 [help]


#1

I don't know, why this code not fix
please help me :wink:

ages = [23, 101, 7, 104, 11, 94, 100, 121, 101, 70, 44]

# Add your code below!
under_100 = Proc.new { |x| x.select!{ x < 100 } }
youngsters = ages.select(&under_100)

Error Messages :

Oops, try again. Your code doesn't look quite right. Check the Hint if you need help!


#2

ages = [23, 101, 7, 104, 11, 94, 100, 121, 101, 70, 44]

under_100 = Proc.new { |x| x < 100 }
ages.select(&under_100)
youngsters = ages.select(&under_100)