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 Basics Ruby Syntax Variables

Rojina Pradhan
Rojina Pradhan
2,681 Points

my code output doesn't show the desired result

puts "Welcome to the widget store!" def count_to_three puts 1 puts 2 puts 3 end

count_to_three wait count_to_three

this is the code I put and the result is this every time:

treehouse:~/workspace$ ruby widgets.rb
Welcome to the widget store!
treehouse:~/workspace$

geoffrey kithuku
geoffrey kithuku
6,728 Points

I see you have 'wait' in your code. Did you mean sleep?

puts "Welcome to the widget store!" def count_to_three puts 1 puts 2 puts 3 end

count_to_three sleep(5) count_to_three