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!
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
Define a method named say_hi. The method body should include a call to puts with an argument of "hi". Then call your new
Define a method named say_hi. The method body should include a call to puts with an argument of "hi". Then call your new say_hi method.
puts "say_hi" .rb call "say_hi".rb
Remember to make a method in Ruby, you need to use the keyword "def"
def a_method_name puts "some words" end