Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby Loops Ruby Loops The Ruby Loop

Brian Patterson
Brian Patterson
19,588 Points

Not sure why this isn't working?

'numbers = []

number = 0 loop do numbers += (23,44,54) end' Not sure why this isn't working

loop.rb
numbers = []

number = 0
loop do 
  numbers += (23,44,54)
  break
  end

# write your loop here

2 Answers

Alistair Mackay
Alistair Mackay
7,812 Points

I got stuck with this one as well, this post showed me where I was going wrong -

https://teamtreehouse.com/community/loops-14

Hope this helps.

-PC

Jacob Bergdahl
Jacob Bergdahl
29,118 Points

There are a few things wrong with the code. Rather than giving you the answer, I would really recommend you to watch the video before the challenge again to make sure that you fully understand what's going on.