Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, January 17, 2013

Codecademy Sample Solution: Collect 'Em All


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

# Add your code below!
doubled_fibs = fibs.collect { |num| num * 2 }

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts