2. Collect 'Em All


#1
  fibs = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55

  # Add your code below!

  doubled_fibs = [fibs.collect {|num| num * 2 }]

It puts [[2, 2, 4, 6, 10, 16, 26, 42, 68, 110]]
But it says
Oops, try again. The doubled_fibs array should include 2, but doesn't!


#2
fibs = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55

Aren't you forgetting something on this line?

doubled_fibs = [fibs.collect {|num| num * 2 }]

You're asking to assign to doubled_fibs an array, which will contain an array with the doubled results. You only want ONE array, not two.