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 trialDarrell Brown
Courses Plus Student 1,288 PointsRuby Code Challenge ... Ruby Methods: Stage 4
Create a method called "hello" that takes one argument.
Man these challenges, are killing me lately.... =( How do I make a method called "hello"? or "Friend"? or anything?
def add(a)
puts " #{a} Darrell:"
end
add(hello)
1 Answer
William Li
Courses Plus Student 26,868 Pointsdef hello(a)
end
DONE
Darrell Brown
Courses Plus Student 1,288 PointsDarrell Brown
Courses Plus Student 1,288 PointsThanks William! I appreciate it man!
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 PointsDon't mention it, :)
SY LOC
3,233 PointsSY LOC
3,233 PointsWhy is it work for the assignment, but when I typed it in launch workshop it doesn't work? 'hello' is a method? The name of the method can be anything that is what I'm getting at.. I could use 'hi'